public class ScalarValuedPair
extends java.lang.Object
implements java.io.Serializable
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.
SampledFunction,
VectorialValuedPair,
Serialized Form| Constructor and Description |
|---|
ScalarValuedPair(double x,
double y)
Simple constructor.
|
ScalarValuedPair(ScalarValuedPair p)
Copy-constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public ScalarValuedPair(double x,
double y)
x - abscissay - ordinate (value of the function)public ScalarValuedPair(ScalarValuedPair p)
p - point to copypublic double getX()
public double getY()
public void setX(double x)
x - new value for the abscissapublic void setY(double y)
y - new value for the ordinateCopyright © 2001-2007 Luc Maisonobe. All Rights Reserved.