Class BasisFunctionAggregation<T>

  • Type Parameters:
    T - The domain type of the function (e.g. Double, double[], DoubleArray etc)
    All Implemented Interfaces:
    Function<T,​Double>

    public class BasisFunctionAggregation<T>
    extends Object
    implements Function<T,​Double>
    • Constructor Detail

      • BasisFunctionAggregation

        public BasisFunctionAggregation​(List<Function<T,​Double>> functions,
                                        double[] weights)
        Creates an instance.
        Parameters:
        functions - the functions
        weights - the weights
    • Method Detail

      • weightSensitivity

        public DoubleArray weightSensitivity​(T x)
        The sensitivity of the value at a point x to the weights of the basis functions.
        Parameters:
        x - value to be evaluated
        Returns:
        sensitivity w
      • valueAndWeightSensitivity

        public Pair<Double,​DoubleArray> valueAndWeightSensitivity​(T x)
        The value of the function at the given point and its sensitivity to the weights of the basis functions.
        Parameters:
        x - value to be evaluated
        Returns:
        value and weight sensitivity