|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.util.math.IntervalPartition
public class IntervalPartition
The class IntervalPartition is a representation of an interval partition,
i.e. a strictly increasing sequence of real numbers.
| Constructor Summary | |
|---|---|
IntervalPartition(double... sequence)
Constructs an interval partition from a sequence of real numbers. |
|
IntervalPartition(float... sequence)
Constructs an interval partition from a sequence of real numbers. |
|
| Method Summary | |
|---|---|
static IntervalPartition[] |
createArray(double[]... sequences)
Creates an array of interval partitions from an array of sequences. |
static IntervalPartition[] |
createArray(float[]... sequences)
Creates an array of interval partitions from an array of sequences. |
double |
get(int i)
Returns the ith number in the interval partition. |
int |
getCardinal()
Returns the cardinal number of the interval partition. |
double |
getMax()
Returns the maximum (i.e. final) number in the partition. |
double |
getMesh()
Returns the mesh of the interval partition, i.e. the maximum distance between two adjacent real numbers in the partition. |
double |
getMin()
Returns the minimum (i.e. first) number in the partition. |
double[] |
getSequence()
Returns the sequence of all numbers in the interval partition. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IntervalPartition(double... sequence)
sequence - the sequence. The sequence must increase strictly and
consist of at least two real numbers.
IllegalArgumentException - if the sequence is not strictly increasing
or consists of less than two real numbers.
NullPointerException - if the sequence is null.public IntervalPartition(float... sequence)
sequence - the sequence. The sequence must increase strictly and
consist of at least two real numbers.
IllegalArgumentException - if the sequence is not strictly increasing
or consists of less than two real numbers.
NullPointerException - if the sequence is null.| Method Detail |
|---|
public static IntervalPartition[] createArray(double[]... sequences)
sequences - the array of sequences. Each sequence must increase strictly
and consist of at least two real numbers.
IllegalArgumentException - if the length of the sequence array is zero
or any sequence is not strictly increasing
or consists of less than two real numbers.
NullPointerException - if the array of sequences or any sequence
is null.public static IntervalPartition[] createArray(float[]... sequences)
sequences - the array of sequences. Each sequence must increase strictly
and consist of at least two real numbers.
IllegalArgumentException - if the length of the sequence array is zero
or any sequence is not strictly increasing
or consists of less than two real numbers.
NullPointerException - if the array of sequences or any sequence
is null.public final int getCardinal()
public final double get(int i)
i - the index number of the real number of interest.
public final double[] getSequence()
public final double getMax()
public final double getMin()
public final double getMesh()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||