Class AbstractRealScalarFunction

    • Constructor Detail

      • AbstractRealScalarFunction

        public AbstractRealScalarFunction​(int domainDimension)
        Construct an instance with the dimension of the domain.
        Parameters:
        domainDimension - the dimension of the domain
    • Method Detail

      • dimensionOfDomain

        public final int dimensionOfDomain()
        Description copied from interface: Function
        Get the number of variables the function has. For example, for a univariate function, the domain dimension is 1; for a bivariate function, the domain dimension is 2.
        Specified by:
        dimensionOfDomain in interface Function<Vector,​Double>
        Returns:
        the number of variables
      • dimensionOfRange

        public final int dimensionOfRange()
        Description copied from interface: Function
        Get the dimension of the range space of the function. For example, for a Rn->Rm function, the dimension of the range is m.
        Specified by:
        dimensionOfRange in interface Function<Vector,​Double>
        Returns:
        the dimension of the range