Changeset - aa3c06c73a6f
[Not reviewed]
0 1 1
Tom Bannink - 8 years ago 2017-06-26 17:12:53
tom.bannink@cwi.nl
Add properties dataset with more samples
1 file changed:
Changeset was too big and was cut off... Show full diff anyway
0 comments (0 inline, 0 general)
cpp/switchchain_properties.cpp
Show inline comments
 
@@ -44,16 +44,16 @@ int main(int argc, char* argv[]) {
 
    const int numVerticesMin = 100;
 
    const int numVerticesMax = 1000;
 
    const int numVerticesStep = 100;
 

	
 
    float tauValues[] = {2.1f, 2.2f, 2.3f, 2.4f, 2.5f, 2.6f, 2.7f, 2.8f, 2.9f};
 

	
 
    const int totalDegreeSamples = 2000;
 
    const int totalDegreeSamples = 5000;
 

	
 
    auto getMixingTime = [](int n, float tau) {
 
        return int(30.0f * (50.0f - 30.0f * (tau - 2.0f)) * n);
 
        return int(50.0f * (50.0f - 30.0f * (tau - 2.0f)) * n);
 
    };
 
    constexpr int measurements = 10;
 
    constexpr int measureSkip = 1000; // Take a sample every ... steps
 

	
 
    // Output file
 
    std::ofstream outfile;
 
@@ -69,13 +69,13 @@ int main(int argc, char* argv[]) {
 
    // Output Mathematica-style comment to indicate file contents
 
    outfile << "(*\n";
 
    outfile << "n from " << numVerticesMin << " to " << numVerticesMax
 
            << " step " << numVerticesStep << std::endl;
 
    outfile << "tauValues: " << tauValues << std::endl;
 
    outfile << "degreeSamples: " << totalDegreeSamples << std::endl;
 
    outfile << "mixingTime: 30 * (50 - 30 (tau - 2)) n\n";
 
    outfile << "mixingTime: 50 * (50 - 30 (tau - 2)) n\n";
 
    outfile << "data:\n";
 
    outfile << "1: {n,tau}\n";
 
    outfile << "2: avgTriangles\n";
 
    outfile << "3: edges\n";
 
    outfile << "4: dstn\n";
 
    outfile << "5: { HH A, HH L, average A, average L }  where for each there is (average of) {lambda1 , lambda1 - lambda2, lambda1/lambda2}\n";

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

0 comments (0 inline, 0 general)