org.jscience.mathematics.analysis
Class ValuedPair

java.lang.Object
  extended by org.jscience.mathematics.analysis.ValuedPair
All Implemented Interfaces:
java.io.Serializable

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

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

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

See Also:
SampledMapping, Serialized Form

Constructor Summary
ValuedPair(double x, double y)
          Simple constructor, values are wrapped into their corresponding type and into an array.
ValuedPair(float x, float y)
          Simple constructor, values are wrapped into their corresponding type and into an array.
ValuedPair(int x, int y)
          Simple constructor, values are wrapped into their corresponding type and into an array.
ValuedPair(long x, long y)
          Simple constructor, values are wrapped into their corresponding type and into an array.
ValuedPair(java.lang.Number[] x, java.lang.Number[] y)
          Simple constructor.
ValuedPair(java.lang.Number x, java.lang.Number y)
          Simple constructor, values are wrapped into an array.
ValuedPair(ValuedPair p)
          Copy-constructor.
 
Method Summary
 java.lang.Number[] getX()
          Getter for the abscissa, values are wrapped into an array.
 java.lang.Number[] getY()
          Getter for the ordinate, values are wrapped into an array.
 void setX(double x)
          Setter for the abscissa, value is wrapped into its corresponding type and into an array.
 void setX(float x)
          Setter for the abscissa, value is wrapped into its corresponding type and into an array.
 void setX(int x)
          Setter for the abscissa, value is wrapped into its corresponding type and into an array.
 void setX(long x)
          Setter for the abscissa, value is wrapped into its corresponding type and into an array.
 void setX(java.lang.Number x)
          Setter for the abscissa, value is wrapped into an array.
 void setX(java.lang.Number[] x)
          Setter for the abscissa.
 void setY(double y)
          Setter for the ordinate, value is wrapped into its corresponding type and into an array.
 void setY(float y)
          Setter for the ordinate, value is wrapped into its corresponding type and into an array.
 void setY(int y)
          Setter for the ordinate, value is wrapped into its corresponding type and into an array.
 void setY(long y)
          Setter for the ordinate, value is wrapped into its corresponding type and into an array.
 void setY(java.lang.Number y)
          Setter for the ordinate, value is wrapped into an array.
 void setY(java.lang.Number[] 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

ValuedPair

public ValuedPair(double x,
                  double y)
Simple constructor, values are wrapped into their corresponding type and into an array. Build an instance from its coordinates

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

ValuedPair

public ValuedPair(float x,
                  float y)
Simple constructor, values are wrapped into their corresponding type and into an array. Build an instance from its coordinates

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

ValuedPair

public ValuedPair(long x,
                  long y)
Simple constructor, values are wrapped into their corresponding type and into an array. Build an instance from its coordinates

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

ValuedPair

public ValuedPair(int x,
                  int y)
Simple constructor, values are wrapped into their corresponding type and into an array. Build an instance from its coordinates

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

ValuedPair

public ValuedPair(java.lang.Number x,
                  java.lang.Number y)
Simple constructor, values are wrapped into an array. Build an instance from its coordinates

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

ValuedPair

public ValuedPair(java.lang.Number[] x,
                  java.lang.Number[] y)
Simple constructor. Build an instance from its coordinates

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

ValuedPair

public ValuedPair(ValuedPair p)
Copy-constructor.

Parameters:
p - point to copy
Method Detail

getX

public java.lang.Number[] getX()
Getter for the abscissa, values are wrapped into an array.

Returns:
value of the abscissa

getY

public java.lang.Number[] getY()
Getter for the ordinate, values are wrapped into an array.

Returns:
value of the ordinate

setX

public void setX(double x)
Setter for the abscissa, value is wrapped into its corresponding type and into an array.

Parameters:
x - new value for the abscissa

setY

public void setY(double y)
Setter for the ordinate, value is wrapped into its corresponding type and into an array.

Parameters:
y - new value for the ordinate

setX

public void setX(float x)
Setter for the abscissa, value is wrapped into its corresponding type and into an array.

Parameters:
x - new value for the abscissa

setY

public void setY(float y)
Setter for the ordinate, value is wrapped into its corresponding type and into an array.

Parameters:
y - new value for the ordinate

setX

public void setX(long x)
Setter for the abscissa, value is wrapped into its corresponding type and into an array.

Parameters:
x - new value for the abscissa

setY

public void setY(long y)
Setter for the ordinate, value is wrapped into its corresponding type and into an array.

Parameters:
y - new value for the ordinate

setX

public void setX(int x)
Setter for the abscissa, value is wrapped into its corresponding type and into an array.

Parameters:
x - new value for the abscissa

setY

public void setY(int y)
Setter for the ordinate, value is wrapped into its corresponding type and into an array.

Parameters:
y - new value for the ordinate

setX

public void setX(java.lang.Number x)
Setter for the abscissa, value is wrapped into an array.

Parameters:
x - new value for the abscissa

setY

public void setY(java.lang.Number y)
Setter for the ordinate, value is wrapped into an array.

Parameters:
y - new value for the ordinate

setX

public void setX(java.lang.Number[] x)
Setter for the abscissa.

Parameters:
x - new value for the abscissa

setY

public void setY(java.lang.Number[] y)
Setter for the ordinate.

Parameters:
y - new value for the ordinate