|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.torstennahm.integrate.quadratureformula.QuadratureFormula
public class QuadratureFormula
This class represents a quadrature formula, given by a list of nodes and weights. The nodes are sorted in ascending order, so lower indices correspond to numerically smaller nodes.
According to general Generator contract, this class is thread-safe.
| Constructor Summary | |
|---|---|
QuadratureFormula(double[] nodes,
double[] weights)
Constructs the quadrature formula from arrays. |
|
QuadratureFormula(java.util.List<java.lang.Double> nodeList,
java.util.List<java.lang.Double> weightList)
Constructs the quadrature formula from lists of Doubles. |
|
| Method Summary | |
|---|---|
double |
getNode(int index)
Returns the node of the specified (node, weight) pair. |
double[] |
getNodesArray()
Returns the nodes as an array. |
int |
getSize()
Returns number of (node, weight) pairs of the formula. |
double |
getWeight(int index)
Returns the weight of the specified (node, weight) pair. |
double[] |
getWeightsArray()
Returns the weights as an array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QuadratureFormula(double[] nodes,
double[] weights)
nodes - array of nodesweights - array of weights
java.lang.IllegalArgumentException - if the arrays have different lengths
java.lang.IllegalArgumentException - if the nodes are not sorted
public QuadratureFormula(java.util.List<java.lang.Double> nodeList,
java.util.List<java.lang.Double> weightList)
Doubles. The list of nodes must be
sorted in ascending order.
nodeList - list of nodesweightList - list of weights
java.lang.IllegalArgumentException - if the lists have different lengths
java.lang.IllegalArgumentException - if the nodes are not sorted| Method Detail |
|---|
public int getSize()
public double getNode(int index)
index - of the pair
public double getWeight(int index)
index - of the pair
public double[] getNodesArray()
public double[] getWeightsArray()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||