public static class DoubleArrayDictionary.Entry extends Object implements Serializable
| Modifier and Type | Method and Description |
|---|---|
String |
getKey()
Get the entry key.
|
double[] |
getValue()
Get the value.
|
void |
increment(double[] increment)
Increment the value.
|
void |
scaledIncrement(double factor,
DoubleArrayDictionary.Entry raw)
Increment the value with another scaled entry.
|
int |
size()
Get the size of the value array.
|
void |
zero()
Reset the value to zero.
|
public String getKey()
public double[] getValue()
public int size()
public void increment(double[] increment)
For the sake of performance, no checks are done on argument.
increment - increment to apply to the entry valuepublic void scaledIncrement(double factor,
DoubleArrayDictionary.Entry raw)
Each component value[i] will be replaced by value[i] + factor * raw.value[i].
For the sake of performance, no checks are done on arguments.
factor - multiplicative factor for incrementraw - raw increment to be multiplied by factor and then addedpublic void zero()
Copyright © 2002-2022 CS GROUP. All rights reserved.