U
- Unit; the unit of this FloatVectorpublic abstract class FloatVector<U extends Unit<U>> extends AbstractValue<U> implements Serializable, ReadOnlyFloatVectorFunctions<U>
This file was generated by the OpenTrafficSim value classes generator, 09 mrt, 2015
Copyright (c) 2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Class and Description |
---|---|
static class |
FloatVector.Abs<U extends Unit<U>> |
static class |
FloatVector.Rel<U extends Unit<U>> |
Modifier | Constructor and Description |
---|---|
protected |
FloatVector(U unit)
Construct a new Immutable FloatVector.
|
Modifier and Type | Method and Description |
---|---|
int |
cardinality()
Count the number of cells that have a non-zero value (ignores tolerance).
|
protected void |
checkIndex(int index)
Check that a provided index is valid.
|
protected static <U extends Unit<U>> |
checkNonEmpty(FloatScalar<U>[] fsArray)
Check that a provided array can be used to create some descendant of a FloatVector.
|
protected void |
checkSize(float[] other)
Centralized size equality check.
|
protected void |
checkSize(FloatVector<?> other)
Centralized size equality check.
|
protected abstract cern.colt.matrix.tfloat.FloatMatrix1D |
createMatrix1D(int size)
Create storage for the data.
|
protected void |
deepCopyData()
Make a deep copy of the data (used ONLY in the MutableFloatVector sub class).
|
protected cern.colt.matrix.tfloat.FloatMatrix1D |
deepCopyOfData()
Create a deep copy of the data.
|
static <U extends Unit<U>> |
denseToSparse(FloatVector.Abs.Dense<U> in)
Create a Sparse version of a Dense FloatVector.
|
static <U extends Unit<U>> |
denseToSparse(FloatVector.Rel.Dense<U> in)
Create a Sparse version of a Dense FloatVector.
|
boolean |
equals(Object obj) |
float |
getInUnit(int index)
Retrieve the value stored at a specified position in the original unit.
|
float |
getInUnit(int index,
U targetUnit)
Retrieve the value stored at a specified position converted into a specified unit.
|
float |
getSI(int index)
Retrieve the value stored at a specified position in the standard SI unit.
|
float[] |
getValuesInUnit()
Create a float[] array filled with the values in the original unit.
|
float[] |
getValuesInUnit(U targetUnit)
Create a float[] array filled with the values converted into a specified unit.
|
float[] |
getValuesSI()
Create a float[] array filled with the values in the standard SI unit.
|
protected cern.colt.matrix.tfloat.FloatMatrix1D |
getVectorSI()
Retrieve the internal data.
|
int |
hashCode() |
protected void |
initialize(float[] values)
Import the values and convert them into the SI standard unit.
|
protected void |
initialize(cern.colt.matrix.tfloat.FloatMatrix1D values)
Import the values from an existing FloatMatrix1D.
|
protected void |
initialize(FloatScalar<U>[] values)
Construct the vector and store the values in the standard SI unit.
|
static <U extends Unit<U>> |
interpolate(FloatVector.Abs.Dense<U> zero,
FloatVector.Abs.Dense<U> one,
float ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>> |
interpolate(FloatVector.Abs.Sparse<U> zero,
FloatVector.Abs.Sparse<U> one,
float ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>> |
interpolate(FloatVector.Rel.Dense<U> zero,
FloatVector.Rel.Dense<U> one,
float ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>> |
interpolate(FloatVector.Rel.Sparse<U> zero,
FloatVector.Rel.Sparse<U> one,
float ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>> |
minus(FloatVector.Abs.Dense<U> left,
FloatVector.Abs<U> right)
Subtract two FloatVectors value by value and store the result in a new MutableFloatVector.Rel.Dense<U>.
|
static <U extends Unit<U>> |
minus(FloatVector.Abs.Dense<U> left,
FloatVector.Rel<U> right)
Subtract two FloatVectors value by value and store the result in a new MutableFloatVector.Abs.Dense<U>.
|
static <U extends Unit<U>> |
minus(FloatVector.Abs.Sparse<U> left,
FloatVector.Abs.Dense<U> right)
Subtract two FloatVectors value by value and store the result in a new MutableFloatVector.Rel.Dense<U>.
|
static <U extends Unit<U>> |
minus(FloatVector.Abs.Sparse<U> left,
FloatVector.Abs.Sparse<U> right)
Subtract two FloatVectors value by value and store the result in a new MutableFloatVector.Rel.Sparse<U>.
|
static <U extends Unit<U>> |
minus(FloatVector.Abs.Sparse<U> left,
FloatVector.Rel.Dense<U> right)
Subtract two FloatVectors value by value and store the result in a new MutableFloatVector.Abs.Dense<U>.
|
static <U extends Unit<U>> |
minus(FloatVector.Abs.Sparse<U> left,
FloatVector.Rel.Sparse<U> right)
Subtract two FloatVectors value by value and store the result in a new MutableFloatVector.Abs.Sparse<U>.
|
static <U extends Unit<U>> |
minus(FloatVector.Rel.Dense<U> left,
FloatVector.Rel<U> right)
Subtract two FloatVectors value by value and store the result in a new MutableFloatVector.Rel.Dense<U>.
|
static <U extends Unit<U>> |
minus(FloatVector.Rel.Sparse<U> left,
FloatVector.Rel.Dense<U> right)
Subtract two FloatVectors value by value and store the result in a new MutableFloatVector.Rel.Dense<U>.
|
static <U extends Unit<U>> |
minus(FloatVector.Rel.Sparse<U> left,
FloatVector.Rel.Sparse<U> right)
Subtract two FloatVectors value by value and store the result in a new MutableFloatVector.Rel.Sparse<U>.
|
abstract MutableFloatVector<U> |
mutable()
Create a mutable version of this FloatVector.
|
static <U extends Unit<U>> |
plus(FloatVector.Abs.Dense<U> left,
FloatVector.Rel<U> right)
Add two FloatVectors value by value and store the result in a new MutableFloatVector.Abs.Dense<U>.
|
static <U extends Unit<U>> |
plus(FloatVector.Abs.Sparse<U> left,
FloatVector.Rel.Dense<U> right)
Add two FloatVectors value by value and store the result in a new MutableFloatVector.Abs.Dense<U>.
|
static <U extends Unit<U>> |
plus(FloatVector.Abs.Sparse<U> left,
FloatVector.Rel.Sparse<U> right)
Add two FloatVectors value by value and store the result in a new MutableFloatVector.Abs.Sparse<U>.
|
static <U extends Unit<U>> |
plus(FloatVector.Rel.Dense<U> left,
FloatVector.Rel<U> right)
Add two FloatVectors value by value and store the result in a new MutableFloatVector.Rel.Dense<U>.
|
static <U extends Unit<U>> |
plus(FloatVector.Rel.Sparse<U> left,
FloatVector.Rel.Dense<U> right)
Add two FloatVectors value by value and store the result in a new MutableFloatVector.Rel.Dense<U>.
|
static <U extends Unit<U>> |
plus(FloatVector.Rel.Sparse<U> left,
FloatVector.Rel.Sparse<U> right)
Add two FloatVectors value by value and store the result in a new MutableFloatVector.Rel.Sparse<U>.
|
protected float |
safeGet(int index)
Retrieve a value in vectorSI without checking validity of the index.
|
protected void |
safeSet(int index,
float valueSI)
Modify a value in vectorSI without checking validity of the index.
|
int |
size()
Retrieve the size of the vector.
|
static <U extends Unit<U>> |
sparseToDense(FloatVector.Abs.Sparse<U> in)
Create a Dense version of a Sparse FloatVector.
|
static <U extends Unit<U>> |
sparseToDense(FloatVector.Rel.Sparse<U> in)
Create a Dense version of a Sparse FloatVector.
|
static MutableFloatVector.Abs.Dense<SIUnit> |
times(FloatVector.Abs.Dense<?> left,
FloatVector.Abs.Dense<?> right)
Multiply two FloatVectors value by value and store the result in a new
MutableFloatVector.Abs.Dense<SIUnit>.
|
static MutableFloatVector.Abs.Sparse<SIUnit> |
times(FloatVector.Abs.Dense<?> left,
FloatVector.Abs.Sparse<?> right)
Multiply two FloatVectors value by value and store the result in a new
MutableFloatVector.Abs.Sparse<SIUnit>.
|
static <U extends Unit<U>> |
times(FloatVector.Abs.Dense<U> left,
float[] right)
Multiply the values in a FloatVector and a float array value by value and store the result in a new
MutableFloatVector.Abs.Dense<U>.
|
static MutableFloatVector.Abs.Sparse<SIUnit> |
times(FloatVector.Abs.Sparse<?> left,
FloatVector.Abs<?> right)
Multiply two FloatVectors value by value and store the result in a new
MutableFloatVector.Abs.Sparse<SIUnit>.
|
static <U extends Unit<U>> |
times(FloatVector.Abs.Sparse<U> left,
float[] right)
Multiply the values in a FloatVector and a float array value by value and store the result in a new
MutableFloatVector.Abs.Sparse<U>.
|
static MutableFloatVector.Rel.Dense<SIUnit> |
times(FloatVector.Rel.Dense<?> left,
FloatVector.Rel.Dense<?> right)
Multiply two FloatVectors value by value and store the result in a new
MutableFloatVector.Rel.Dense<SIUnit>.
|
static MutableFloatVector.Rel.Sparse<SIUnit> |
times(FloatVector.Rel.Dense<?> left,
FloatVector.Rel.Sparse<?> right)
Multiply two FloatVectors value by value and store the result in a new
MutableFloatVector.Rel.Sparse<SIUnit>.
|
static <U extends Unit<U>> |
times(FloatVector.Rel.Dense<U> left,
float[] right)
Multiply the values in a FloatVector and a float array value by value and store the result in a new
MutableFloatVector.Rel.Dense<U>.
|
static MutableFloatVector.Rel.Sparse<SIUnit> |
times(FloatVector.Rel.Sparse<?> left,
FloatVector.Rel<?> right)
Multiply two FloatVectors value by value and store the result in a new
MutableFloatVector.Rel.Sparse<SIUnit>.
|
static <U extends Unit<U>> |
times(FloatVector.Rel.Sparse<U> left,
float[] right)
Multiply the values in a FloatVector and a float array value by value and store the result in a new
MutableFloatVector.Rel.Sparse<U>.
|
String |
toString() |
String |
toString(boolean verbose,
boolean withUnit)
Print this FloatVector with optional type and unit information.
|
String |
toString(U displayUnit)
Print this FloatVector with the values expressed in the specified unit.
|
String |
toString(U displayUnit,
boolean verbose,
boolean withUnit)
Print this FloatVector with the values expressed in the specified unit.
|
float |
zSum()
Compute the sum of all values of this vector.
|
expressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
get
protected FloatVector(U unit)
unit
- U; the unit of the new FloatVectorprotected final cern.colt.matrix.tfloat.FloatMatrix1D getVectorSI()
protected final void deepCopyData()
public abstract MutableFloatVector<U> mutable()
protected final void initialize(float[] values) throws ValueException
values
- float[]; an array of valuesValueException
- when values is nullprotected final void initialize(cern.colt.matrix.tfloat.FloatMatrix1D values)
values
- FloatMatrix1D; the valuesprotected final void initialize(FloatScalar<U>[] values) throws ValueException
values
- FloatScalar<U>[]; an array of valuesValueException
- when values is null, or emptyprotected abstract cern.colt.matrix.tfloat.FloatMatrix1D createMatrix1D(int size)
size
- int; the number of cells in the vectorpublic final float[] getValuesSI()
public final float[] getValuesInUnit()
public final float[] getValuesInUnit(U targetUnit)
targetUnit
- U; the unit into which the values are converted for usepublic final int size()
size
in interface ReadOnlyFloatVectorFunctions<U extends Unit<U>>
public final float getSI(int index) throws ValueException
getSI
in interface ReadOnlyFloatVectorFunctions<U extends Unit<U>>
index
- int; index of the value to retrieveValueException
- when index out of range (index < 0 or index >= size())public final float getInUnit(int index) throws ValueException
getInUnit
in interface ReadOnlyFloatVectorFunctions<U extends Unit<U>>
index
- int; index of the value to retrieveValueException
- when index out of range (index < 0 or index >= size())public final float getInUnit(int index, U targetUnit) throws ValueException
getInUnit
in interface ReadOnlyFloatVectorFunctions<U extends Unit<U>>
index
- int; index of the value to retrievetargetUnit
- U; the unit for the resultValueException
- when index out of range (index < 0 or index >= size())public final float zSum()
zSum
in interface ReadOnlyFloatVectorFunctions<U extends Unit<U>>
public final int cardinality()
cardinality
in interface ReadOnlyFloatVectorFunctions<U extends Unit<U>>
public final String toString(U displayUnit)
displayUnit
- U; the unit into which the values are converted for displaypublic final String toString(boolean verbose, boolean withUnit)
verbose
- boolean; if true; include type info; if false; exclude type infowithUnit
- boolean; if true; include the unit; of false; exclude the unitpublic final String toString(U displayUnit, boolean verbose, boolean withUnit)
displayUnit
- U; the unit into which the values are converted for displayverbose
- boolean; if true; include type info; if false; exclude type infowithUnit
- boolean; if true; include the unit; of false; exclude the unitprotected final void checkSize(FloatVector<?> other) throws ValueException
other
- FloatVector<?>; other FloatVectorValueException
- when other is null, or vectors have unequal sizeprotected final void checkSize(float[] other) throws ValueException
other
- float[]; array of floatValueException
- when vectors have unequal sizeprotected final void checkIndex(int index) throws ValueException
index
- int; the value to checkValueException
- when index is invalidprotected final float safeGet(int index)
index
- int; the indexprotected final void safeSet(int index, float valueSI)
index
- int; the indexvalueSI
- float; the new value for the entry in vectorSIprotected final cern.colt.matrix.tfloat.FloatMatrix1D deepCopyOfData()
protected static <U extends Unit<U>> FloatScalar<U>[] checkNonEmpty(FloatScalar<U>[] fsArray) throws ValueException
U
- Unit; the unit of the FloatScalar arrayfsArray
- FloatScalar<U>[]; the provided arrayValueException
- when the array has length equal to 0public static <U extends Unit<U>> MutableFloatVector.Abs.Dense<U> plus(FloatVector.Abs.Dense<U> left, FloatVector.Rel<U> right) throws ValueException
U
- Unit; the unit of the parameters and the resultleft
- FloatVector.Abs.Dense<U>; the left operandright
- FloatVector.Rel<U>; the right operandValueException
- when the vectors do not have the same sizepublic static <U extends Unit<U>> MutableFloatVector.Abs.Dense<U> plus(FloatVector.Abs.Sparse<U> left, FloatVector.Rel.Dense<U> right) throws ValueException
U
- Unit; the unit of the parameters and the resultleft
- FloatVector.Abs.Sparse<U>; the left operandright
- FloatVector.Rel.Dense<U>; the right operandValueException
- when the vectors do not have the same sizepublic static <U extends Unit<U>> MutableFloatVector.Abs.Sparse<U> plus(FloatVector.Abs.Sparse<U> left, FloatVector.Rel.Sparse<U> right) throws ValueException
U
- Unit; the unit of the parameters and the resultleft
- FloatVector.Abs.Sparse<U>; the left operandright
- FloatVector.Rel.Sparse<U>; the right operandValueException
- when the vectors do not have the same sizepublic static <U extends Unit<U>> MutableFloatVector.Rel.Dense<U> plus(FloatVector.Rel.Dense<U> left, FloatVector.Rel<U> right) throws ValueException
U
- Unit; the unit of the parameters and the resultleft
- FloatVector.Rel.Dense<U>; the left operandright
- FloatVector.Rel<U>; the right operandValueException
- when the vectors do not have the same sizepublic static <U extends Unit<U>> MutableFloatVector.Rel.Dense<U> plus(FloatVector.Rel.Sparse<U> left, FloatVector.Rel.Dense<U> right) throws ValueException
U
- Unit; the unit of the parameters and the resultleft
- FloatVector.Rel.Sparse<U>; the left operandright
- FloatVector.Rel.Dense<U>; the right operandValueException
- when the vectors do not have the same sizepublic static <U extends Unit<U>> MutableFloatVector.Rel.Sparse<U> plus(FloatVector.Rel.Sparse<U> left, FloatVector.Rel.Sparse<U> right) throws ValueException
U
- Unit; the unit of the parameters and the resultleft
- FloatVector.Rel.Sparse<U>; the left operandright
- FloatVector.Rel.Sparse<U>; the right operandValueException
- when the vectors do not have the same sizepublic static <U extends Unit<U>> MutableFloatVector.Rel.Dense<U> minus(FloatVector.Abs.Dense<U> left, FloatVector.Abs<U> right) throws ValueException
U
- Unit; the unit of the parameters and the resultleft
- FloatVector.Abs.Dense<U>; the left operandright
- FloatVector.Abs<U>; the right operandValueException
- when the vectors do not have the same sizepublic static <U extends Unit<U>> MutableFloatVector.Rel.Sparse<U> minus(FloatVector.Abs.Sparse<U> left, FloatVector.Abs.Sparse<U> right) throws ValueException
U
- Unit; the unit of the parameters and the resultleft
- FloatVector.Abs.Sparse<U>; the left operandright
- FloatVector.Abs.Sparse<U>; the right operandValueException
- when the vectors do not have the same sizepublic static <U extends Unit<U>> MutableFloatVector.Rel.Dense<U> minus(FloatVector.Abs.Sparse<U> left, FloatVector.Abs.Dense<U> right) throws ValueException
U
- Unit; the unit of the parameters and the resultleft
- FloatVector.Abs.Sparse<U>; the left operandright
- FloatVector.Abs.Dense<U>; the right operandValueException
- when the vectors do not have the same sizepublic static <U extends Unit<U>> MutableFloatVector.Abs.Dense<U> minus(FloatVector.Abs.Dense<U> left, FloatVector.Rel<U> right) throws ValueException
U
- Unit; the unit of the parameters and the resultleft
- FloatVector.Abs.Dense<U>; the left operandright
- FloatVector.Rel<U>; the right operandValueException
- when the vectors do not have the same sizepublic static <U extends Unit<U>> MutableFloatVector.Abs.Dense<U> minus(FloatVector.Abs.Sparse<U> left, FloatVector.Rel.Dense<U> right) throws ValueException
U
- Unit; the unit of the parameters and the resultleft
- FloatVector.Abs.Sparse<U>; the left operandright
- FloatVector.Rel.Dense<U>; the right operandValueException
- when the vectors do not have the same sizepublic static <U extends Unit<U>> MutableFloatVector.Abs.Sparse<U> minus(FloatVector.Abs.Sparse<U> left, FloatVector.Rel.Sparse<U> right) throws ValueException
U
- Unit; the unit of the parameters and the resultleft
- FloatVector.Abs.Sparse<U>; the left operandright
- FloatVector.Rel.Sparse<U>; the right operandValueException
- when the vectors do not have the same sizepublic static <U extends Unit<U>> MutableFloatVector.Rel.Dense<U> minus(FloatVector.Rel.Dense<U> left, FloatVector.Rel<U> right) throws ValueException
U
- Unit; the unit of the parameters and the resultleft
- FloatVector.Rel.Dense<U>; the left operandright
- FloatVector.Rel<U>; the right operandValueException
- when the vectors do not have the same sizepublic static <U extends Unit<U>> MutableFloatVector.Rel.Dense<U> minus(FloatVector.Rel.Sparse<U> left, FloatVector.Rel.Dense<U> right) throws ValueException
U
- Unit; the unit of the parameters and the resultleft
- FloatVector.Rel.Sparse<U>; the left operandright
- FloatVector.Rel.Dense<U>; the right operandValueException
- when the vectors do not have the same sizepublic static <U extends Unit<U>> MutableFloatVector.Rel.Sparse<U> minus(FloatVector.Rel.Sparse<U> left, FloatVector.Rel.Sparse<U> right) throws ValueException
U
- Unit; the unit of the parameters and the resultleft
- FloatVector.Rel.Sparse<U>; the left operandright
- FloatVector.Rel.Sparse<U>; the right operandValueException
- when the vectors do not have the same sizepublic static MutableFloatVector.Abs.Dense<SIUnit> times(FloatVector.Abs.Dense<?> left, FloatVector.Abs.Dense<?> right) throws ValueException
left
- FloatVector.Abs.Dense<?>; the left operandright
- FloatVector.Abs.Dense<?>; the right operandValueException
- when the vectors do not have the same sizepublic static MutableFloatVector.Abs.Sparse<SIUnit> times(FloatVector.Abs.Dense<?> left, FloatVector.Abs.Sparse<?> right) throws ValueException
left
- FloatVector.Abs.Dense<?>; the left operandright
- FloatVector.Abs.Sparse<?>; the right operandValueException
- when the vectors do not have the same sizepublic static MutableFloatVector.Abs.Sparse<SIUnit> times(FloatVector.Abs.Sparse<?> left, FloatVector.Abs<?> right) throws ValueException
left
- FloatVector.Abs.Sparse<?>; the left operandright
- FloatVector.Abs<?>; the right operandValueException
- when the vectors do not have the same sizepublic static MutableFloatVector.Rel.Dense<SIUnit> times(FloatVector.Rel.Dense<?> left, FloatVector.Rel.Dense<?> right) throws ValueException
left
- FloatVector.Rel.Dense<?>; the left operandright
- FloatVector.Rel.Dense<?>; the right operandValueException
- when the vectors do not have the same sizepublic static MutableFloatVector.Rel.Sparse<SIUnit> times(FloatVector.Rel.Dense<?> left, FloatVector.Rel.Sparse<?> right) throws ValueException
left
- FloatVector.Rel.Dense<?>; the left operandright
- FloatVector.Rel.Sparse<?>; the right operandValueException
- when the vectors do not have the same sizepublic static MutableFloatVector.Rel.Sparse<SIUnit> times(FloatVector.Rel.Sparse<?> left, FloatVector.Rel<?> right) throws ValueException
left
- FloatVector.Rel.Sparse<?>; the left operandright
- FloatVector.Rel<?>; the right operandValueException
- when the vectors do not have the same sizepublic static <U extends Unit<U>> MutableFloatVector.Abs.Dense<U> times(FloatVector.Abs.Dense<U> left, float[] right) throws ValueException
U
- Unit; the unit of the left parameter and the resultleft
- FloatVector.Abs.Dense<U>; the FloatVectorright
- float[]; the float arrayValueException
- when the FloatVector and the array do not have the same sizepublic static <U extends Unit<U>> MutableFloatVector.Abs.Sparse<U> times(FloatVector.Abs.Sparse<U> left, float[] right) throws ValueException
U
- Unit; the unit of the left parameter and the resultleft
- FloatVector.Abs.Sparse<U>; the FloatVectorright
- float[]; the float arrayValueException
- when the FloatVector and the array do not have the same sizepublic static <U extends Unit<U>> MutableFloatVector.Rel.Dense<U> times(FloatVector.Rel.Dense<U> left, float[] right) throws ValueException
U
- Unit; the unit of the left parameter and the resultleft
- FloatVector.Rel.Dense<U>; the FloatVectorright
- float[]; the float arrayValueException
- when the FloatVector and the array do not have the same sizepublic static <U extends Unit<U>> MutableFloatVector.Rel.Sparse<U> times(FloatVector.Rel.Sparse<U> left, float[] right) throws ValueException
U
- Unit; the unit of the left parameter and the resultleft
- FloatVector.Rel.Sparse<U>; the FloatVectorright
- float[]; the float arrayValueException
- when the FloatVector and the array do not have the same sizepublic static <U extends Unit<U>> MutableFloatVector.Abs.Sparse<U> denseToSparse(FloatVector.Abs.Dense<U> in)
U
- Unit; the unit of the parameter and the resultin
- FloatVector.Abs.Dense<U>; the Dense FloatVectorpublic static <U extends Unit<U>> MutableFloatVector.Rel.Sparse<U> denseToSparse(FloatVector.Rel.Dense<U> in)
U
- Unit; the unit of the parameter and the resultin
- FloatVector.Rel.Dense<U>; the Dense FloatVectorpublic static <U extends Unit<U>> MutableFloatVector.Abs.Dense<U> sparseToDense(FloatVector.Abs.Sparse<U> in)
U
- Unit; the unit of the parameter and the resultin
- FloatVector.Abs.Sparse<U>; the Sparse FloatVectorpublic static <U extends Unit<U>> MutableFloatVector.Rel.Dense<U> sparseToDense(FloatVector.Rel.Sparse<U> in)
U
- Unit; the unit of the parameter and the resultin
- FloatVector.Rel.Sparse<U>; the Sparse FloatVectorpublic static <U extends Unit<U>> MutableFloatVector.Abs.Dense<U> interpolate(FloatVector.Abs.Dense<U> zero, FloatVector.Abs.Dense<U> one, float ratio) throws ValueException
U
- Unit; the unit of the parameters and the resultzero
- FloatVector.Abs.Dense<U>; zero reference (returned when ratio == 0)one
- FloatVector.Abs.Dense<U>; one reference (returned when ratio == 1)ratio
- float; the ratio that determines where between (or outside) zero and one the result liesValueException
- when zero and one do not have the same sizepublic static <U extends Unit<U>> MutableFloatVector.Rel.Dense<U> interpolate(FloatVector.Rel.Dense<U> zero, FloatVector.Rel.Dense<U> one, float ratio) throws ValueException
U
- Unit; the unit of the parameters and the resultzero
- FloatVector.Rel.Dense<U>; zero reference (returned when ratio == 0)one
- FloatVector.Rel.Dense<U>; one reference (returned when ratio == 1)ratio
- float; the ratio that determines where between (or outside) zero and one the result liesValueException
- when zero and one do not have the same sizepublic static <U extends Unit<U>> MutableFloatVector.Abs.Sparse<U> interpolate(FloatVector.Abs.Sparse<U> zero, FloatVector.Abs.Sparse<U> one, float ratio) throws ValueException
U
- Unit; the unit of the parameters and the resultzero
- FloatVector.Abs.Sparse<U>; zero reference (returned when ratio == 0)one
- FloatVector.Abs.Sparse<U>; one reference (returned when ratio == 1)ratio
- float; the ratio that determines where between (or outside) zero and one the result liesValueException
- when zero and one do not have the same sizepublic static <U extends Unit<U>> MutableFloatVector.Rel.Sparse<U> interpolate(FloatVector.Rel.Sparse<U> zero, FloatVector.Rel.Sparse<U> one, float ratio) throws ValueException
U
- Unit; the unit of the parameters and the resultzero
- FloatVector.Rel.Sparse<U>; zero reference (returned when ratio == 0)one
- FloatVector.Rel.Sparse<U>; one reference (returned when ratio == 1)ratio
- float; the ratio that determines where between (or outside) zero and one the result liesValueException
- when zero and one do not have the same sizeCopyright © 2014–2015 Delft University of Technology. All rights reserved.