gov.sandia.cognition.learning.algorithm.minimization.line.interpolator
Class LineBracketInterpolatorLinear

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.learning.algorithm.minimization.line.interpolator.AbstractLineBracketInterpolator<EvaluatorType>
          extended by gov.sandia.cognition.learning.algorithm.minimization.line.interpolator.AbstractLineBracketInterpolatorPolynomial<Evaluator<Double,Double>>
              extended by gov.sandia.cognition.learning.algorithm.minimization.line.interpolator.LineBracketInterpolatorLinear
All Implemented Interfaces:
LineBracketInterpolator<Evaluator<Double,Double>>, CloneableSerializable, Serializable, Cloneable

public class LineBracketInterpolatorLinear
extends AbstractLineBracketInterpolatorPolynomial<Evaluator<Double,Double>>

Interpolates using a linear (stright-line) curve between two points, neither of which need slope information.

Since:
2.2
Author:
Kevin R. Dixon
See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.sandia.cognition.learning.algorithm.minimization.line.interpolator.AbstractLineBracketInterpolator
DEFAULT_TOLERANCE
 
Constructor Summary
LineBracketInterpolatorLinear()
          Creates a new instance of LineBracketInterpolatorLinear
 
Method Summary
 PolynomialFunction.Linear computePolynomial(LineBracket bracket, Evaluator<Double,Double> function)
          Fits the interpolating polynomial to the given LineBracket
 boolean hasSufficientPoints(LineBracket bracket)
          Determines if the LineBracket contains a sufficient number/quality of points to conduct the interpolation.
 
Methods inherited from class gov.sandia.cognition.learning.algorithm.minimization.line.interpolator.AbstractLineBracketInterpolatorPolynomial
findMinimum
 
Methods inherited from class gov.sandia.cognition.learning.algorithm.minimization.line.interpolator.AbstractLineBracketInterpolator
getTolerance, setTolerance
 
Methods inherited from class gov.sandia.cognition.util.AbstractCloneableSerializable
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.util.CloneableSerializable
clone
 

Constructor Detail

LineBracketInterpolatorLinear

public LineBracketInterpolatorLinear()
Creates a new instance of LineBracketInterpolatorLinear

Method Detail

computePolynomial

public PolynomialFunction.Linear computePolynomial(LineBracket bracket,
                                                   Evaluator<Double,Double> function)
Description copied from class: AbstractLineBracketInterpolatorPolynomial
Fits the interpolating polynomial to the given LineBracket

Specified by:
computePolynomial in class AbstractLineBracketInterpolatorPolynomial<Evaluator<Double,Double>>
Parameters:
bracket - LineBracket to consider
function - Function to use to fill in missing information
Returns:
Interpolating polynomial

hasSufficientPoints

public boolean hasSufficientPoints(LineBracket bracket)
Description copied from interface: LineBracketInterpolator
Determines if the LineBracket contains a sufficient number/quality of points to conduct the interpolation.

Parameters:
bracket - LineBracket to consider
Returns:
true if the LineBracket has a sufficient number of points, false if the LineBracket doesn't have enough.