Class RealFunctionSamples.FunctionSample

java.lang.Object
xal.tools.math.fnc.RealFunctionSamples.FunctionSample
Enclosing class:
RealFunctionSamples

public static class RealFunctionSamples.FunctionSample extends Object
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 Details

    • FunctionSample

      public FunctionSample(double dblLoc, double dblVal)
      Create a new function sample.
      Parameters:
      dblLoc - sample location
      dblVal - 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