| Package | Description |
|---|---|
| de.javagl.nd.tuples.d |
Multidimensional tuples of
double values |
| de.javagl.nd.tuples.i |
Multidimensional tuples of
int values |
| de.javagl.nd.tuples.j |
Multidimensional tuples of
long values |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractMutableDoubleTuple
Abstract base implementation of a
MutableDoubleTuple. |
| Modifier and Type | Method and Description |
|---|---|
static MutableDoubleTuple |
DoubleTupleCollections.add(Collection<? extends DoubleTuple> tuples,
MutableDoubleTuple result)
Computes the component-wise sum of the given collection
of tuples.
|
static MutableDoubleTuple |
DoubleTuples.add(DoubleTuple t0,
double value,
MutableDoubleTuple result)
Add the given value to all elements of the given input
tuples, and store the result in the given result tuple.
|
static MutableDoubleTuple |
DoubleTuples.add(DoubleTuple t0,
DoubleTuple t1,
MutableDoubleTuple result)
Add the given input tuples, and store the result in
the given result tuple.
|
static MutableDoubleTuple |
DoubleTuples.addScaled(DoubleTuple t0,
double factor,
DoubleTuple t1,
MutableDoubleTuple result)
Computes
t0+factor*t1, and stores the result in the given
result tuple. |
static MutableDoubleTuple |
DoubleTupleFunctions.apply(DoubleTuple t0,
DoubleTuple t1,
java.util.function.DoubleBinaryOperator op,
MutableDoubleTuple result)
Applies the given binary operator to each pair of elements from the
given tuples, and stores the result in the given result tuple.
|
static MutableDoubleTuple |
DoubleTupleFunctions.apply(DoubleTuple t0,
java.util.function.DoubleUnaryOperator op,
MutableDoubleTuple result)
Applies the given unary operator to element from the given tuple,
and stores the result in the given result tuple.
|
static MutableDoubleTuple |
DoubleTupleCollections.arithmeticMean(Collection<? extends DoubleTuple> tuples,
MutableDoubleTuple result)
Computes the component-wise arithmetic mean of the given collection
of
DoubleTuple objects. |
static MutableDoubleTuple |
DoubleTuples.clamp(DoubleTuple t,
double min,
double max,
MutableDoubleTuple result)
Clamp the components of the given tuple to be in the specified range,
and write the result into the given result tuple.
|
static MutableDoubleTuple |
DoubleTuples.clamp(DoubleTuple t,
DoubleTuple min,
DoubleTuple max,
MutableDoubleTuple result)
Clamp the components of the given tuple to be in the specified range,
and write the result into the given result tuple.
|
static MutableDoubleTuple |
DoubleTuples.copy(DoubleTuple other)
Creates a new tuple which is a copy of
the given one.
|
static MutableDoubleTuple |
DoubleTuples.create(int size)
Creates a new tuple with the given size.
|
static MutableDoubleTuple |
DoubleTuples.createRandom(int size,
double min,
double max,
Random random)
Creates a tuple with the given size that
is filled with random values in the given range.
|
static MutableDoubleTuple |
DoubleTuples.createRandom(int size,
Random random)
Creates a tuple with the given size that
is filled with random values in [0,1)
|
static MutableDoubleTuple |
DoubleTuples.createRandomGaussian(int size,
Random random)
Creates a tuple with the given size
that was filled with values from a gaussian
distribution with mean 0.0 and standard deviation 1.0
|
static MutableDoubleTuple |
DoubleTuples.divide(DoubleTuple t0,
DoubleTuple t1,
MutableDoubleTuple result)
Divide the elements of the given input tuples, and store
the results in the given result tuple.
|
static MutableDoubleTuple |
DoubleTupleFunctions.exclusiveScan(DoubleTuple t0,
double identity,
java.util.function.DoubleBinaryOperator op,
MutableDoubleTuple result)
Performs an exclusive scan on the elements of the given tuple, using
the provided identity value and associative accumulation function,
and returns the result.
|
static MutableDoubleTuple |
DoubleTupleFunctions.inclusiveScan(DoubleTuple t0,
java.util.function.DoubleBinaryOperator op,
MutableDoubleTuple result)
Performs an inclusive scan on the elements of the given tuple, using
the provided associative accumulation function, and returns the
result.
|
static MutableDoubleTuple |
DoubleTuples.interpolate(DoubleTuple t0,
DoubleTuple t1,
double alpha,
MutableDoubleTuple result)
Computes
t0+alpha*(t1-t0), and stores the result in
the given result tuple. |
static MutableDoubleTuple |
DoubleTupleCollections.max(Collection<? extends DoubleTuple> tuples,
MutableDoubleTuple result)
Computes the component-wise maximum of the given collection
of tuples.
|
static MutableDoubleTuple |
DoubleTuples.max(DoubleTuple t0,
DoubleTuple t1,
MutableDoubleTuple result)
Compute the element-wise maximum of the the given input
tuples, and store the result in the given
result tuple.
|
static MutableDoubleTuple |
DoubleTupleCollections.min(Collection<? extends DoubleTuple> tuples,
MutableDoubleTuple result)
Computes the component-wise minimum of the given collection
of tuples.
|
static MutableDoubleTuple |
DoubleTuples.min(DoubleTuple t0,
DoubleTuple t1,
MutableDoubleTuple result)
Compute the element-wise minimum of the the given input
tuples, and store the result in the given
result tuple.
|
static MutableDoubleTuple |
DoubleTuples.multiply(DoubleTuple t0,
double factor,
MutableDoubleTuple result)
Multiply the given input tuple with the given factor, and
store the result in the given result tuple.
|
static MutableDoubleTuple |
DoubleTuples.multiply(DoubleTuple t0,
DoubleTuple t1,
MutableDoubleTuple result)
Multiply the elements of the given input tuples, and store
the results in the given result tuple.
|
static MutableDoubleTuple |
DoubleTuples.negate(DoubleTuple t0,
MutableDoubleTuple result)
Negates the given tuple, and store the result in the given result tuple.
|
static MutableDoubleTuple |
DoubleTuples.normalize(DoubleTuple t,
MutableDoubleTuple result)
Normalize the given tuple and write the result into
the given result tuple.
|
static MutableDoubleTuple |
DoubleTuples.normalizeElements(DoubleTuple t,
double min,
double max,
MutableDoubleTuple result)
Normalize the elements of the given tuple, so that its minimum and
maximum elements match the given minimum and maximum values.
|
static MutableDoubleTuple |
DoubleTuples.normalizeElements(DoubleTuple t,
DoubleTuple min,
DoubleTuple max,
MutableDoubleTuple result)
Normalize the elements of the given tuple, so that each element
will be linearly rescaled to the interval defined by the corresponding
elements of the given minimum and maximum tuple.
|
static MutableDoubleTuple |
DoubleTuples.of(double... values)
Creates a new tuple with the given values.
|
static MutableDoubleTuple |
DoubleTuples.rescaleElements(DoubleTuple t,
double oldMin,
double oldMax,
double newMin,
double newMax,
MutableDoubleTuple result)
Rescale the elements of the given tuple, so that the specified
old range is mapped to the specified new range.
|
static MutableDoubleTuple |
DoubleTuples.reverse(DoubleTuple t,
MutableDoubleTuple result)
Reverse the given tuple.
|
static MutableDoubleTuple |
DoubleTuples.reversed(MutableDoubleTuple t)
Creates a new tuple that is a reversed view on the given
tuple.
|
static MutableDoubleTuple |
DoubleTupleCollections.standardDeviation(Collection<? extends DoubleTuple> tuples,
MutableDoubleTuple result)
Returns the component-wise standard deviation of the given collection
of
DoubleTuple objects. |
static MutableDoubleTuple |
DoubleTupleCollections.standardDeviationFromMean(Collection<? extends DoubleTuple> tuples,
DoubleTuple mean,
MutableDoubleTuple result)
Returns the component-wise standard deviation of the given collection
of
DoubleTuple objects. |
static MutableDoubleTuple |
DoubleTuples.standardDeviationFromVariance(DoubleTuple variance,
MutableDoubleTuple result)
Returns the standard deviation of the given variances (that is,
a tuple containing the square roots of the values in the given
tuple).
|
static MutableDoubleTuple |
DoubleTuples.standardize(DoubleTuple t,
MutableDoubleTuple result)
Standardize the given tuple.
|
static MutableDoubleTuple |
DoubleTuples.subtract(DoubleTuple t0,
double value,
MutableDoubleTuple result)
Subtract the given value from all elements of the given input
tuple, and store the result in the given result tuple.
|
static MutableDoubleTuple |
DoubleTuples.subtract(DoubleTuple t0,
DoubleTuple t1,
MutableDoubleTuple result)
Subtract the given input tuples, and store the result in
the given result tuple.
|
default MutableDoubleTuple |
MutableDoubleTuple.subTuple(int fromIndex,
int toIndex)
Returns a view on a portion of this tuple.
|
static MutableDoubleTuple |
DoubleTupleCollections.variance(Collection<? extends DoubleTuple> tuples,
DoubleTuple mean,
MutableDoubleTuple result)
Computes the component-wise variance of the given collection
of
DoubleTuple objects. |
static MutableDoubleTuple |
DoubleTupleCollections.variance(Collection<? extends DoubleTuple> tuples,
MutableDoubleTuple result)
Computes the component-wise variance of the given collection
of
DoubleTuple objects. |
static MutableDoubleTuple |
DoubleTuples.wrap(double... values)
Creates a new tuple that is a view
on the given values.
|
static MutableDoubleTuple |
DoubleTuples.wrap(double[] data,
int offset,
int size)
Returns a new tuple that is a view on the
specified portion of the given array
|
static MutableDoubleTuple |
DoubleTuples.wrap(DoubleBuffer buffer)
Returns a new tuple that is a view on the given buffer.
|
| Modifier and Type | Method and Description |
|---|---|
static List<MutableDoubleTuple> |
DoubleTupleCollections.create(int dimensions,
int numElements)
Create the specified number of tuples with the given dimensions
(
size), all initialized to zero, and
return them as a list |
static List<MutableDoubleTuple> |
DoubleTupleCollections.deepCopy(Collection<? extends DoubleTuple> tuples)
Returns a deep copy of the given collection of tuples.
|
static List<MutableDoubleTuple> |
DoubleTupleCollections.normalize(Collection<? extends DoubleTuple> inputs,
List<MutableDoubleTuple> results)
Normalize the given collection of
MutableDoubleTuples. |
static List<MutableDoubleTuple> |
DoubleTupleCollections.standardize(Collection<? extends DoubleTuple> inputs,
List<MutableDoubleTuple> results)
Standardize the given input tuples.
|
| Modifier and Type | Method and Description |
|---|---|
static MutableDoubleTuple |
DoubleTupleCollections.add(Collection<? extends DoubleTuple> tuples,
MutableDoubleTuple result)
Computes the component-wise sum of the given collection
of tuples.
|
static MutableDoubleTuple |
DoubleTuples.add(DoubleTuple t0,
double value,
MutableDoubleTuple result)
Add the given value to all elements of the given input
tuples, and store the result in the given result tuple.
|
static MutableDoubleTuple |
DoubleTuples.add(DoubleTuple t0,
DoubleTuple t1,
MutableDoubleTuple result)
Add the given input tuples, and store the result in
the given result tuple.
|
static MutableDoubleTuple |
DoubleTuples.addScaled(DoubleTuple t0,
double factor,
DoubleTuple t1,
MutableDoubleTuple result)
Computes
t0+factor*t1, and stores the result in the given
result tuple. |
static MutableDoubleTuple |
DoubleTupleFunctions.apply(DoubleTuple t0,
DoubleTuple t1,
java.util.function.DoubleBinaryOperator op,
MutableDoubleTuple result)
Applies the given binary operator to each pair of elements from the
given tuples, and stores the result in the given result tuple.
|
static MutableDoubleTuple |
DoubleTupleFunctions.apply(DoubleTuple t0,
java.util.function.DoubleUnaryOperator op,
MutableDoubleTuple result)
Applies the given unary operator to element from the given tuple,
and stores the result in the given result tuple.
|
static MutableDoubleTuple |
DoubleTupleCollections.arithmeticMean(Collection<? extends DoubleTuple> tuples,
MutableDoubleTuple result)
Computes the component-wise arithmetic mean of the given collection
of
DoubleTuple objects. |
static List<Double> |
DoubleTuples.asList(MutableDoubleTuple t)
Returns a view on the given tuple as a list that does not
allow structural modifications.
|
static MutableDoubleTuple |
DoubleTuples.clamp(DoubleTuple t,
double min,
double max,
MutableDoubleTuple result)
Clamp the components of the given tuple to be in the specified range,
and write the result into the given result tuple.
|
static MutableDoubleTuple |
DoubleTuples.clamp(DoubleTuple t,
DoubleTuple min,
DoubleTuple max,
MutableDoubleTuple result)
Clamp the components of the given tuple to be in the specified range,
and write the result into the given result tuple.
|
static MutableDoubleTuple |
DoubleTuples.divide(DoubleTuple t0,
DoubleTuple t1,
MutableDoubleTuple result)
Divide the elements of the given input tuples, and store
the results in the given result tuple.
|
static MutableDoubleTuple |
DoubleTupleFunctions.exclusiveScan(DoubleTuple t0,
double identity,
java.util.function.DoubleBinaryOperator op,
MutableDoubleTuple result)
Performs an exclusive scan on the elements of the given tuple, using
the provided identity value and associative accumulation function,
and returns the result.
|
static MutableDoubleTuple |
DoubleTupleFunctions.inclusiveScan(DoubleTuple t0,
java.util.function.DoubleBinaryOperator op,
MutableDoubleTuple result)
Performs an inclusive scan on the elements of the given tuple, using
the provided associative accumulation function, and returns the
result.
|
static MutableDoubleTuple |
DoubleTuples.interpolate(DoubleTuple t0,
DoubleTuple t1,
double alpha,
MutableDoubleTuple result)
Computes
t0+alpha*(t1-t0), and stores the result in
the given result tuple. |
static MutableDoubleTuple |
DoubleTupleCollections.max(Collection<? extends DoubleTuple> tuples,
MutableDoubleTuple result)
Computes the component-wise maximum of the given collection
of tuples.
|
static MutableDoubleTuple |
DoubleTuples.max(DoubleTuple t0,
DoubleTuple t1,
MutableDoubleTuple result)
Compute the element-wise maximum of the the given input
tuples, and store the result in the given
result tuple.
|
static MutableDoubleTuple |
DoubleTupleCollections.min(Collection<? extends DoubleTuple> tuples,
MutableDoubleTuple result)
Computes the component-wise minimum of the given collection
of tuples.
|
static MutableDoubleTuple |
DoubleTuples.min(DoubleTuple t0,
DoubleTuple t1,
MutableDoubleTuple result)
Compute the element-wise minimum of the the given input
tuples, and store the result in the given
result tuple.
|
static MutableDoubleTuple |
DoubleTuples.multiply(DoubleTuple t0,
double factor,
MutableDoubleTuple result)
Multiply the given input tuple with the given factor, and
store the result in the given result tuple.
|
static MutableDoubleTuple |
DoubleTuples.multiply(DoubleTuple t0,
DoubleTuple t1,
MutableDoubleTuple result)
Multiply the elements of the given input tuples, and store
the results in the given result tuple.
|
static MutableDoubleTuple |
DoubleTuples.negate(DoubleTuple t0,
MutableDoubleTuple result)
Negates the given tuple, and store the result in the given result tuple.
|
static MutableDoubleTuple |
DoubleTuples.normalize(DoubleTuple t,
MutableDoubleTuple result)
Normalize the given tuple and write the result into
the given result tuple.
|
static MutableDoubleTuple |
DoubleTuples.normalizeElements(DoubleTuple t,
double min,
double max,
MutableDoubleTuple result)
Normalize the elements of the given tuple, so that its minimum and
maximum elements match the given minimum and maximum values.
|
static MutableDoubleTuple |
DoubleTuples.normalizeElements(DoubleTuple t,
DoubleTuple min,
DoubleTuple max,
MutableDoubleTuple result)
Normalize the elements of the given tuple, so that each element
will be linearly rescaled to the interval defined by the corresponding
elements of the given minimum and maximum tuple.
|
static void |
DoubleTuples.randomize(MutableDoubleTuple t,
double min,
double max,
Random random)
Fill the given tuple with random values in
the specified range, using the given random number generator
|
static void |
DoubleTuples.randomize(MutableDoubleTuple t,
Random random)
Fill the given tuple with random values in
[0,1), using the given random number generator
|
static void |
DoubleTuples.randomizeGaussian(MutableDoubleTuple t,
Random random)
Randomize the given tuple with a gaussian
distribution with a mean of 0.0 and standard deviation of 1.0
|
static MutableDoubleTuple |
DoubleTuples.rescaleElements(DoubleTuple t,
double oldMin,
double oldMax,
double newMin,
double newMax,
MutableDoubleTuple result)
Rescale the elements of the given tuple, so that the specified
old range is mapped to the specified new range.
|
static MutableDoubleTuple |
DoubleTuples.reverse(DoubleTuple t,
MutableDoubleTuple result)
Reverse the given tuple.
|
static MutableDoubleTuple |
DoubleTuples.reversed(MutableDoubleTuple t)
Creates a new tuple that is a reversed view on the given
tuple.
|
static void |
DoubleTuples.set(MutableDoubleTuple t,
double v)
Set all elements of the given tuple to the given value
|
static MutableDoubleTuple |
DoubleTupleCollections.standardDeviation(Collection<? extends DoubleTuple> tuples,
MutableDoubleTuple result)
Returns the component-wise standard deviation of the given collection
of
DoubleTuple objects. |
static MutableDoubleTuple |
DoubleTupleCollections.standardDeviationFromMean(Collection<? extends DoubleTuple> tuples,
DoubleTuple mean,
MutableDoubleTuple result)
Returns the component-wise standard deviation of the given collection
of
DoubleTuple objects. |
static MutableDoubleTuple |
DoubleTuples.standardDeviationFromVariance(DoubleTuple variance,
MutableDoubleTuple result)
Returns the standard deviation of the given variances (that is,
a tuple containing the square roots of the values in the given
tuple).
|
static MutableDoubleTuple |
DoubleTuples.standardize(DoubleTuple t,
MutableDoubleTuple result)
Standardize the given tuple.
|
static MutableDoubleTuple |
DoubleTuples.subtract(DoubleTuple t0,
double value,
MutableDoubleTuple result)
Subtract the given value from all elements of the given input
tuple, and store the result in the given result tuple.
|
static MutableDoubleTuple |
DoubleTuples.subtract(DoubleTuple t0,
DoubleTuple t1,
MutableDoubleTuple result)
Subtract the given input tuples, and store the result in
the given result tuple.
|
static MutableDoubleTuple |
DoubleTupleCollections.variance(Collection<? extends DoubleTuple> tuples,
DoubleTuple mean,
MutableDoubleTuple result)
Computes the component-wise variance of the given collection
of
DoubleTuple objects. |
static MutableDoubleTuple |
DoubleTupleCollections.variance(Collection<? extends DoubleTuple> tuples,
MutableDoubleTuple result)
Computes the component-wise variance of the given collection
of
DoubleTuple objects. |
| Modifier and Type | Method and Description |
|---|---|
static void |
DoubleTupleCollections.create(int dimensions,
int numElements,
Collection<? super MutableDoubleTuple> target)
Create the specified number of tuples with the given dimensions
(
size), all initialized to zero, and place
them into the given target collection |
static List<MutableDoubleTuple> |
DoubleTupleCollections.normalize(Collection<? extends DoubleTuple> inputs,
List<MutableDoubleTuple> results)
Normalize the given collection of
MutableDoubleTuples. |
static List<MutableDoubleTuple> |
DoubleTupleCollections.standardize(Collection<? extends DoubleTuple> inputs,
List<MutableDoubleTuple> results)
Standardize the given input tuples.
|
| Modifier and Type | Method and Description |
|---|---|
static MutableDoubleTuple |
IntTuples.toDoubleTuple(IntTuple intTuple)
Convert the given
IntTuple into a DoubleTuple |
| Modifier and Type | Method and Description |
|---|---|
static MutableDoubleTuple |
LongTuples.toDoubleTuple(LongTuple longTuple)
Convert the given
LongTuple into a DoubleTuple |
Copyright © 2015. All Rights Reserved.