static LikelihoodScoringModel() { MassBinning = new DiscretizedNumber(100, 15000, 100); IntensityBinning = new DiscretizedNumber(0.2, 30, 0.4); CorrBinning = new DiscretizedNumber(0.5, 1.0, 0.01); DistBinning = new DiscretizedNumber(0, 0.5, 0.01); //MzErrorBinning = new DiscretizedNumber(0.1, 20, 0.1); IonTypeScoreTable = new double[ActivationBinLength][]; MassScoreTable = new double[ActivationBinLength][][]; ChargeScoreTable = new double[MassBinning.BinCount][]; for (var i = 0; i < MassBinning.BinCount; i++) { ChargeScoreTable[i] = new double[ChargeBinLength]; } CorrScoreTable = new double[ChargeBinLength][][]; DistScoreTable = new double[ChargeBinLength][][]; IntensityScoreTable = new double[ChargeBinLength][][]; for (var i = 0; i < ActivationBinLength; i++) { IonTypeScoreTable[i] = new double[IonTypeBinLength]; ChargeScoreTable[i] = new double[MassBinning.BinCount]; MassScoreTable[i] = new double[IonTypeBinLength][]; for (var j = 0; j < IonTypeBinLength; j++) { MassScoreTable[i][j] = new double[MassBinning.BinCount]; } } for (var i = 0; i < ChargeBinLength; i++) { CorrScoreTable[i] = new double[MassBinning.BinCount][]; DistScoreTable[i] = new double[MassBinning.BinCount][]; IntensityScoreTable[i] = new double[MassBinning.BinCount][]; for (var j = 0; j < MassBinning.BinCount; j++) { CorrScoreTable[i][j] = new double[CorrBinning.BinCount]; DistScoreTable[i][j] = new double[DistBinning.BinCount]; IntensityScoreTable[i][j] = new double[IntensityBinning.BinCount]; } } }