public SimScan(Spectra spec) { Random rnd = new Random(); List <SimCentroid> ls = new List <SimCentroid>(); CentroidCount = spec.getPeakCount(); for (int i = 0; i < CentroidCount; i++) { SimCentroid cent = new SimCentroid(spec, i, rnd); ls.Add(cent); } Centroids = ls; simCentroid = ls; DetectorName = "simulatedDetector"; NoiseBand = null; HasCentroidInformation = true; HasProfileInformation = false; ProfileCount = 0; CommonInformation = new InfoContainer(true, spec); SpecificInformation = new InfoContainer(false, spec); }