Class RangePenalisedLeastSquares

    • Constructor Detail

      • RangePenalisedLeastSquares

        public RangePenalisedLeastSquares()
    • Method Detail

      • getLambda

        public double getLambda()
        The lambda is the regularisation strength.
        Returns:
        the lambda factor.
      • setLambda

        public void setLambda​(double lambda)
      • evaluate

        public void evaluate​(GeneralTask t)
        Description copied from class: SumOfSquares
        Calculates the sum of squared deviations using curve as reference.

        This calculates ∑i=i1i2(T⏞(ti)-T(ti)ref)2, where Tiref is the temperature value corresponding to the time at index i for the reference curve. Note that the time ti corresponds to the reference's time list, which generally does not match to that of this heating curve. The T⏞(ti) is the interpolated value.

        Overrides:
        evaluate in class SumOfSquares
        Parameters:
        t - The task containing the reference and calculated curves
        See Also:
        calculateResiduals()