internal void CancelChanges() { m_Dirty = m_bu_Dirty; m_RequiresFullReprocessing = m_bu_RequiresFullReprocessing; m_ProcessingType = m_bu_ProcessingType; m_Binning = m_bu_Binning; m_Normalisation = m_bu_Normalisation; m_Filter = m_bu_Filter; m_NormMethod = mbu__NormMethod; SelectedFrameNo = bu_SelectedFrameNo; for (int i = 0; i < 4; i++) { m_ReProcessApertures[i] = m_bu_ReProcessApertures[i]; } for (int i = 0; i < 4; i++) { m_ReProcessFitAreas[i] = m_bu_ReProcessFitAreas[i]; } for (int i = 0; i < 4; i++) { m_ObjectTitles[i] = m_bu_ObjectTitles[i]; } m_ChartTitleLines = m_bu_ChartTitleLines; }
internal void PrepareForCancelling() { m_bu_Dirty = m_Dirty; m_bu_RequiresFullReprocessing = m_RequiresFullReprocessing; m_bu_ProcessingType = m_ProcessingType; m_bu_Binning = m_Binning; m_bu_Normalisation = m_Normalisation; m_bu_Filter = m_Filter; mbu__NormMethod = m_NormMethod; bu_SelectedFrameNo = SelectedFrameNo; for (int i = 0; i < 4; i++) m_bu_ReProcessApertures[i] = m_ReProcessApertures[i]; for (int i = 0; i < 4; i++) m_bu_ReProcessFitAreas[i] = m_ReProcessFitAreas[i]; for (int i = 0; i < 4; i++) m_bu_ObjectTitles[i] = m_ObjectTitles[i]; m_bu_ChartTitleLines = m_ChartTitleLines; }
public static List <double> DenormaliseList(List <double> numbers, double[] inRange, double[] outRange, NormalisationMethod method = NormalisationMethod.Normal) { if (inRange.Length < 2 || outRange.Length < 2) { return(numbers); } return(numbers.Select(n => Denormalise(n, inRange[0], inRange[1], outRange[0], outRange[1], method)).ToList()); }
public static List <double> DenormaliseList(List <double> numbers, double max, NormalisationMethod method = NormalisationMethod.Normal) { return(DenormaliseList(numbers, new[] { 0, max }, new double[] { 0, 1 }, method)); }
public static double Denormalise(double number, double[] inRange, double[] outRange, NormalisationMethod method = NormalisationMethod.Normal) { if (inRange.Length < 2 || outRange.Length < 2) { return(0); } return(Denormalise(number, inRange[0], inRange[1], outRange[0], outRange[1], method)); }
public static double Denormalise(double number, double max, NormalisationMethod method = NormalisationMethod.Normal) { return(Denormalise(number, 0, 1, 0, max, method)); }
public static double DenormaliseObsolete(double number, double inMin, double inMax, double outMin, double outMax, NormalisationMethod method = NormalisationMethod.Normal) { double result; switch (method) { case (NormalisationMethod.Normal): result = DenormaliseNormal(number, inMin, inMax, outMin, outMax); break; case (NormalisationMethod.Gradiated): result = DenormaliseGradiated(number, inMin, inMax, outMin, outMax); break; case (NormalisationMethod.Asymptotic): result = DenormaliseAsymptotic(number, inMin, inMax, outMin, outMax); break; case (NormalisationMethod.AsymptoticSharp): result = DenormaliseAsymptoticSharp(number, inMin, inMax, outMin, outMax); break; case (NormalisationMethod.AsymptoticSmooth): result = DenormaliseAsymptotic(number, inMin, inMax, outMin, outMax); break; default: result = DenormaliseNormal(number, inMin, inMax, outMin, outMax); break; } return(result); }