Exemplo n.º 1
0
 private RandomInputDataSet([Parameter(typeof(NumberOfPartitions))] int numberOfPartitions,
     [Parameter(typeof(NumberOfDoublesPerPartition))] int numberOfDoublesPerPartition)
 {
     _partitions = new Dictionary<string, IPartitionDescriptor>(numberOfPartitions);
     for (var i = 0; i < numberOfPartitions; ++i)
     {
         var id = "RandomInputPartition-" + i;
         _partitions[id] = new RandomInputPartitionDescriptor(id, numberOfDoublesPerPartition);
     }
 }
Exemplo n.º 2
0
 private RandomInputDataSet([Parameter(typeof(NumberOfPartitions))] int numberOfPartitions,
                            [Parameter(typeof(NumberOfDoublesPerPartition))] int numberOfDoublesPerPartition)
 {
     _partitions = new Dictionary <string, IPartitionDescriptor>(numberOfPartitions);
     for (var i = 0; i < numberOfPartitions; ++i)
     {
         var id = "RandomInputPartition-" + i;
         _partitions[id] = new RandomInputPartitionDescriptor(id, numberOfDoublesPerPartition);
     }
 }