private static void SetNNSmoothProcessed(Culture culture, List <GrowthMeasurement> smooth) { var neuro = new Neural(); var fitted = Modules.Clone(smooth); fitted = neuro.GetFittedData(fitted); culture.GrowthMeasurements.SetMeasurements(fitted, DataType.Fitted); }
private static void SetNNSmoothFirstDeriv(bool apply, List <GrowthMeasurement> firstDeriv, ref Culture culture) { if (!apply) { return; } var neuroD = new Neural(); var filteredDer = neuroD.GetFittedData(firstDeriv); culture.GrowthMeasurements.SetMeasurements(filteredDer, DataType.FirstDerivative); }
private static List <GrowthMeasurement> NNsmoothRawData(bool apply, List <GrowthMeasurement> raw) { if (!apply) { return(raw); } var neuroD = new Neural(); var fittedRaw = neuroD.GetFittedData(raw); return(fittedRaw); }
private static List <GrowthMeasurement> NNSmoothProcessedData(bool apply, List <GrowthMeasurement> raw, List <GrowthMeasurement> smooth, float blankValue, CalibrationFunction trueODCalibartionFunction, int count, float maxPeak) { if (!apply) { return(smooth); } var neuroD = new Neural(); var fittedRaw = neuroD.GetFittedData(raw); return(Modules.ProccessedDatapoints(fittedRaw, blankValue, trueODCalibartionFunction, out count, out maxPeak, true)); }