Atl2NmfSBenchmark/Make2AntSyncAtlExecutor.cs
/// <summary>
/// Writes the results to a file
/// </summary>
Writes the results to a file
Writes the results to a file
private static void WriteResultsToCsv(int[] sizes, int iterations, long[,,] times)
        {
            using (var sw = new StreamWriter("makeResultsSync.csv"))
            {
                sw.WriteLine("Size;Run;InitBatch;InitInc;UpdatesBatch;UpdatesInc");
                for (int sizeIdx = 0; sizeIdx < sizes.Length; sizeIdx++)
                {
                    var n = sizes[sizeIdx];
                    for (int iteration = 0; iteration < iterations; iteration++)
                    {
                        var batchTime = (times[sizeIdx, iteration, 0] + times[sizeIdx, iteration, 2]);
                        var incTime = (times[sizeIdx, iteration, 1] + times[sizeIdx, iteration, 3]);
                        sw.WriteLine($"{n};{iteration};{times[sizeIdx, iteration, 0]};{times[sizeIdx, iteration, 1]};{times[sizeIdx, iteration, 2]};{times[sizeIdx, iteration, 3]}");
                    }
                }
            }
        }
private static void WriteResultsToCsv ( int [ ] sizes , int iterations , long [ , , ] times ) { using ( var sw = new StreamWriter ( " " ) ) { sw . WriteLine ( " " ) ; for ( int sizeIdx = 0 ; sizeIdx < sizes . Length ; sizeIdx ++ ) { var n = sizes [ sizeIdx ] ; for ( int iteration = 0 ; iteration < iterations ; iteration ++ ) { var batchTime = ( times [ sizeIdx , iteration , 0 ] + times [ sizeIdx , iteration , 2 ] ) ; var incTime = ( times [ sizeIdx , iteration , 1 ] + times [ sizeIdx , iteration , 3 ] ) ; sw . WriteLine ( $" { n } ; { iteration } ; { times [ sizeIdx , iteration , 0 ] } ; { times [ sizeIdx , iteration , 1 ] } ; { times [ sizeIdx , iteration , 2 ] } ; { times [ sizeIdx , iteration , 3 ] } " ) ; } } } }
Writes the results to a file
Writes the results to a file
sizes
int[]
iterations
int
times
long[,,]