SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.analysis.function
Interface Function

All Known Subinterfaces:
RealScalarFunction, RealVectorFunction, RntoMatrix
All Known Implementing Classes:
AbsoluteError, AutoCorrelation, AutoCorrelation, AutoCorrelation, AutoCorrelationFunction, AutoCorrelationFunction, AutoCovariance, AutoCovariance, AutoCovariance, AutoCovarianceFunction, AutoCovarianceFunction, Beta, BetaRegularized, BetaRegularizedInverse, BivariateRealFunction, Bt, ContinuedFraction, Courant, CumulativeNormal, CumulativeNormalInverse, DBeta, DBetaRegularized, DErf, Dfdx, DGamma, DGaussian, Digamma, DPolynomial, Erf, Erfc, ErfInverse, F_sum_BtDt, F_sum_tBtDt, FiltrationFunction, FiniteDifference, FiniteDifference, Fletcher, Gamma, GammaLowerIncomplete, GammaRegularizedP, GammaRegularizedPInverse, GammaRegularizedQ, GammaUpperIncomplete, Gaussian, GradientFunction, HessianFunction, JacobianFunction, LogBeta, LogGamma, MultiplierPenalty, NevilleTable, PartialAutoCorrelation, PenaltyFunction, Polynomial, Projection, R1toConstantMatrix, R1toMatrix, R2toMatrix, RealScalarFunctionFixedVariables, Ridders, SumOfPenalties, UnivariateRealFunction, ZERO

public interface Function

The mathematical concept of a function expresses the idea that one quantity (the argument of the function, also known as the input) completely determines another quantity (the value, or output). The argument (domain) and value (range) may be real numbers (as in RealScalarFunction), but they can also be elements from any given sets.

See Also:
Wikipedia: Function (mathematics)

Nested Class Summary
static class Function.EvaluationException
          RuntimeException thrown when it fails to evaluate an expression.
 
Method Summary
 int dimension4Domain()
          Get the number of variables of the function.
 int dimension4Range()
          Get the dimension of the range space the function.
 

Method Detail

dimension4Domain

int dimension4Domain()
Get the number of variables of the function.

For example, for a univariate function, the domain dimension is 1. For a bivariate function, the domain dimension is 2.

Returns:
the number of variables

dimension4Range

int dimension4Range()
Get the dimension of the range space the function.

For example, for a Rn->Rm function, the dimension of the range is m.

Returns:
the dimension of the range

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.