umontreal.iro.lecuyer.functions
Class SqrtMathFunction
- java.lang.Object
-
- umontreal.iro.lecuyer.functions.SqrtMathFunction
-
- All Implemented Interfaces:
- MathFunction
public class SqrtMathFunction extends java.lang.Object implements MathFunction
Represents a function computing the square root of another function f (x).
-
-
Constructor Summary
Constructors Constructor and Description SqrtMathFunction(MathFunction func)Computes and returns the square root of the function func.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleevaluate(double x)Returns the value of the function evaluated at x.MathFunctiongetFunction()Returns the function associated with this object.
-
-
-
Constructor Detail
-
SqrtMathFunction
public SqrtMathFunction(MathFunction func)
Computes and returns the square root of the function func.- Parameters:
func- the function to compute square root for.
-
-
Method Detail
-
getFunction
public MathFunction getFunction()
Returns the function associated with this object.- Returns:
- the associated function.
-
evaluate
public double evaluate(double x)
Description copied from interface:MathFunctionReturns the value of the function evaluated at x.- Specified by:
evaluatein interfaceMathFunction- Parameters:
x- value at which the distribution function is evaluated- Returns:
- function evaluated at x
-
-
DMelt 3.0 © DataMelt by jWork.ORG