public class ValueGenerator
extends java.lang.Object
| Constructor and Description |
|---|
ValueGenerator(double[] generationParameters)
Passing the generation parameters.
|
ValueGenerator(float[] generationParameters)
Passing the generation parameters.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
toDouble(byte[] source)
Convert a unsigned byte array to double.
|
double[] |
toDouble(double[] source)
Convert a double array to double.
|
double[] |
toDouble(float[] source)
Convert a float array to double.
|
double[] |
toDouble(int size)
Create a double array.
|
double[] |
toDouble(int[] source)
Convert a int array to double.
|
double[] |
toDouble(short[] source)
Convert a short array to double.
|
float[] |
toFloat(byte[] source)
Convert a unsigned byte array to float.
|
float[] |
toFloat(double[] source)
Convert a float array to float.
|
float[] |
toFloat(float[] source)
Convert a float array to float.
|
float[] |
toFloat(int size)
Create a float array.
|
float[] |
toFloat(int[] source)
Convert a int array to float.
|
float[] |
toFloat(short[] source)
Convert a short array to float.
|
int[] |
toInt(byte[] source)
Convert a unsigned byte array to int.
|
int[] |
toInt(double[] source)
Convert a float array to int.
|
int[] |
toInt(float[] source)
Convert a float array to int.
|
int[] |
toInt(int size)
Create an int array.
|
int[] |
toInt(int[] source)
Convert a int array to int.
|
int[] |
toInt(short[] source)
Convert a short array to int.
|
public ValueGenerator(double[] generationParameters)
generationParameters - public ValueGenerator(float[] generationParameters)
generationParameters - public double[] toDouble(int size)
size - the size of the output vectorpublic double[] toDouble(short[] source)
source - the sourcepublic double[] toDouble(int[] source)
source - the sourcepublic double[] toDouble(byte[] source)
source - the sourcepublic double[] toDouble(float[] source)
source - the sourcepublic double[] toDouble(double[] source)
source - the sourcepublic float[] toFloat(int size)
size - the size of the output vectorpublic float[] toFloat(short[] source)
source - the sourcepublic float[] toFloat(int[] source)
source - the sourcepublic float[] toFloat(byte[] source)
source - the sourcepublic float[] toFloat(float[] source)
source - the sourcepublic float[] toFloat(double[] source)
source - the sourcepublic int[] toInt(int size)
ize - the size of the output vectorpublic int[] toInt(short[] source)
source - the sourcepublic int[] toInt(int[] source)
source - the sourcepublic int[] toInt(byte[] source)
source - the sourcepublic int[] toInt(float[] source)
source - the sourcepublic int[] toInt(double[] source)
source - the source