org.apache.commons.math.optimization.univariate
Class UnivariateRealPointValuePair

java.lang.Object
  extended by org.apache.commons.math.optimization.univariate.UnivariateRealPointValuePair
All Implemented Interfaces:
java.io.Serializable

public class UnivariateRealPointValuePair
extends java.lang.Object
implements java.io.Serializable

This class holds a point and the value of an objective function at this point. This is a simple immutable container.

Since:
3.0
Version:
$Id$
See Also:
Serialized Form

Constructor Summary
UnivariateRealPointValuePair(double point, double value)
          Build a point/objective function value pair.
 
Method Summary
 double getPoint()
          Get the point.
 double getValue()
          Get the value of the objective function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnivariateRealPointValuePair

public UnivariateRealPointValuePair(double point,
                                    double value)
Build a point/objective function value pair.

Parameters:
point - Point.
value - Value of an objective function at the point
Method Detail

getPoint

public double getPoint()
Get the point.

Returns:
the point.

getValue

public double getValue()
Get the value of the objective function.

Returns:
the stored value of the objective function.


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.