org.spaceroots.mantissa.functions.scalar
Class ScalarValuedPair

java.lang.Object
  extended byorg.spaceroots.mantissa.functions.scalar.ScalarValuedPair
All Implemented Interfaces:
Serializable

public class ScalarValuedPair
extends Object
implements Serializable

This class represents an (x, f(x)) pair for scalar functions.

A scalar function is a function of one scalar parameter x whose value is a scalar. This class is used has a simple placeholder to contain both an abscissa and the value of the function at this abscissa.

Version:
$Id: ScalarValuedPair.java 1666 2005-12-15 16:37:55Z luc $
Author:
L. Maisonobe
See Also:
SampledFunction, VectorialValuedPair, Serialized Form

Constructor Summary
ScalarValuedPair(double x, double y)
          Simple constructor.
ScalarValuedPair(ScalarValuedPair p)
          Copy-constructor.
 
Method Summary
 double getX()
          Getter for the abscissa.
 double getY()
          Getter for the ordinate.
 void setX(double x)
          Setter for the abscissa.
 void setY(double y)
          Setter for the ordinate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScalarValuedPair

public ScalarValuedPair(double x,
                        double y)
Simple constructor. Build an instance from its coordinates

Parameters:
x - abscissa
y - ordinate (value of the function)

ScalarValuedPair

public ScalarValuedPair(ScalarValuedPair p)
Copy-constructor.

Parameters:
p - point to copy
Method Detail

getX

public double getX()
Getter for the abscissa.

Returns:
value of the abscissa

getY

public double getY()
Getter for the ordinate.

Returns:
value of the ordinate

setX

public void setX(double x)
Setter for the abscissa.

Parameters:
x - new value for the abscissa

setY

public void setY(double y)
Setter for the ordinate.

Parameters:
y - new value for the ordinate


Copyright © 2001-2007 Luc Maisonobe. All Rights Reserved.