Package xal.tools.math.fnc
Class RealFunctionSamples.FunctionSample
java.lang.Object
xal.tools.math.fnc.RealFunctionSamples.FunctionSample
- Enclosing class:
- RealFunctionSamples
Class representing the sample of a real-valued function on the real line.
It contains the sample location (on the abscissa) and the function value
there. The intent is that one can create a polynomial fit for a real
function from a suitable number of samples from that function.
- Since:
- Sep 24, 2015
- Author:
- Christopher K. Allen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the sampling location.double
getValue()
Return the sample value.
-
Constructor Details
-
FunctionSample
public FunctionSample(double dblLoc, double dblVal) Create a new function sample.- Parameters:
dblLoc
- sample locationdblVal
- sample value- Since:
- Sep 24, 2015 by Christopher K. Allen
-
-
Method Details
-
getLocation
public double getLocation()Returns the sampling location.- Returns:
- the sample location
- Since:
- Sep 24, 2015 by Christopher K. Allen
-
getValue
public double getValue()Return the sample value.- Returns:
- the sample value
- Since:
- Sep 24, 2015 by Christopher K. Allen
-