Changeset - 096e40410087
[Not reviewed]
0 1 3
Tom Bannink - 8 years ago 2017-07-17 13:54:56
tombannink@gmail.com
Add ccm time evol plots
1 file changed:
Changeset was too big and was cut off... Show full diff anyway
0 comments (0 inline, 0 general)
cpp/switchchain_ccm_timeevol.cpp
Show inline comments
 
@@ -19,7 +19,8 @@ int main(int argc, char* argv[]) {
 
    //float tauValues[] = {2.1f, 2.2f, 2.3f, 2.4f, 2.5f, 2.6f, 2.7f, 2.8f, 2.9f};
 
    float tauValues[] = {2.1f, 2.3f, 2.5f, 2.7f, 2.9f};
 

	
 
    const int totalDegreeSamples = 10;
 
    //const int totalDegreeSamples = 10;
 
    const int totalDegreeSamples = 1;
 

	
 
    auto getMixingTime = [](int n, float tau) {
 
        return int(1.0f * (50.0f - 10.0f * (tau - 2.0f)) * n);
 
@@ -41,8 +42,8 @@ int main(int argc, char* argv[]) {
 
    outfile << "n from " << numVerticesMin << " to " << numVerticesMax
 
            << " step " << numVerticesStep << std::endl;
 
    outfile << "tauValues: " << tauValues << std::endl;
 
    outfile << "degreeSamples: " << totalDegreeSamples << std::endl;
 
    //outfile << "canonical ds" << std::endl;
 
    //outfile << "degreeSamples: " << totalDegreeSamples << std::endl;
 
    outfile << "canonical ds" << std::endl;
 
    outfile << "mixingTime: 0.5 * (50 - 10 (tau - 2)) n\n";
 
    outfile << "measurements: full time evol\n";
 
    outfile << "data:\n";
 
@@ -123,7 +124,7 @@ int main(int argc, char* argv[]) {
 
                    outfile << '}';
 
#endif
 
                    bool failed = true;
 
                    for (int i = 0; i < 50; ++i) {
 
                    for (int i = 0; i < 1000; ++i) {
 
                        Graph gtemp;
 
                        if (constrainedConfigurationModel(ds, gtemp, rng,
 
                                                          ccmMethod)) {
 
@@ -138,7 +139,7 @@ int main(int argc, char* argv[]) {
 
                        }
 
                    }
 
                    if (failed)
 
                        outfile << ",{50,{}}";
 
                        outfile << ",{1000,{}}";
 
                }
 

	
 
                outfile << '}' << std::flush;

Changeset was too big and was cut off... Show full diff anyway

0 comments (0 inline, 0 general)