Interface LeastSquares.Weighting

  • Enclosing class:
    LeastSquares

    public static interface LeastSquares.Weighting
    This interface defines a weighting for observations.
    • Method Detail

      • getWeightForObservation

        double getWeightForObservation​(double x,
                                       double y)
        Specify the weight given to a particular observation. Most commonly uniform weighting is used.
        Parameters:
        x - the independent variable in the observation
        y - the dependent variable in the observation
        Returns:
        the weight assigned to this particular observation