Package | Description |
---|---|
org.kepler.ddp.actor.pattern | |
org.kepler.hadoop.util | |
org.kepler.spark.operator | |
org.kepler.spark.stub | |
org.kepler.stratosphere.stub | |
ptolemy.actor.gui |
Ptolemy GUI components for actors and configurations.
|
ptolemy.data |
Packages for manipulating data that passes between actors.
|
ptolemy.data.expr |
The Ptolemy II Expression Language.
|
Modifier and Type | Method and Description |
---|---|
static ArrayToken |
DDPDataSource.getToken(java.lang.String name)
Get the token for a DDPDataSource actor.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
StubUtilities.arrayTokenToByteArray(ArrayToken arrayToken)
Convert ArrayToken to an array of byte.
|
Constructor and Description |
---|
TokenSource(ArrayToken token,
java.lang.String name)
Create a new TokenSource.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
StubUtilities.convertArrayTokenToObject(ArrayToken arrayToken)
Convert ArrayToken to an array of objects.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
StubUtilities.arrayTokenToByteArray(ArrayToken arrayToken)
Convert ArrayToken to an array of byte.
|
static eu.stratosphere.types.Value[] |
StubUtilities.arrayTokenToPactData(ArrayToken arrayToken)
Convert ArrayToken to an array of Value.
|
Modifier and Type | Method and Description |
---|---|
void |
ArrayOfRecordsPane.display(ArrayToken array)
Set the array to display in the table.
|
void |
ArrayOfRecordsPane.display(ArrayToken array,
ArrayToken columns)
Set the array to display in the table.
|
Modifier and Type | Class and Description |
---|---|
class |
UnsizedArrayToken
A token that represents an array.
|
class |
UpdatedArrayToken
A token that contains an array of tokens that is equal to another
specified ArrayToken except at one location, where it has a new
value.
|
Modifier and Type | Field and Description |
---|---|
static ArrayToken |
ArrayToken.NIL
A token that represents a missing value.
|
Modifier and Type | Method and Description |
---|---|
ArrayToken |
ArrayToken.append(ArrayToken token)
Append the given array to the end of this array, and return the
resulting array.
|
static ArrayToken |
ArrayToken.append(ArrayToken[] tokens)
Append the given arrays.
|
ArrayToken |
ArrayToken.elementAdd(Token token)
Add the given token to each element of this array.
|
ArrayToken |
ArrayToken.elementDivide(Token token)
Divide each element of this array by the given token.
|
ArrayToken |
ArrayToken.elementModulo(Token token)
Modulo each element of this array by the given token.
|
ArrayToken |
ArrayToken.elementMultiply(Token token)
Multiply each element of this array by the given token.
|
ArrayToken |
ArrayToken.elementSubtract(Token token)
Subtract the given token from each element of this array.
|
ArrayToken |
ArrayToken.extract(ArrayToken selection)
Extract a non-contiguous subarray either by giving a boolean array
of the same length of this array describing which elements to
include and which to include, or by giving an an array of an
arbitrary length giving the indices of elements from this array
to include in the subarray.
|
static ArrayToken |
MatrixToken.matrixToArray(MatrixToken matrix)
Create a new instance of ArrayToken that contains the values
in the specified matrix.
|
ArrayToken |
ArrayToken.reverse()
Return a new ArrayToken whose elements are in reverse order of this
ArrayToken.
|
ArrayToken |
ArrayToken.subarray(int index)
Return the contiguous subarray starting at the specified index to the
end of this array.
|
ArrayToken |
ArrayToken.subarray(int index,
int count)
Return the contiguous subarray starting at the specified index and
of the specified length.
|
ArrayToken |
MatrixToken.toArray()
Return an ArrayToken containing the all the values of this
matrix token.
|
ArrayToken |
MatrixToken.toArrayColumnMajor()
Return an ArrayToken containing the all the values of this
matrix token.
|
static ArrayToken |
ArrayToken.unsignedByteArrayToArrayToken(byte[] dataBytes)
Take an array of unsigned bytes and convert it to an ArrayToken.
|
ArrayToken |
ArrayToken.update(int index,
Token value)
Return a new array with all elements equal to those of this
array except the one at position index, which has value
given by value.
|
Modifier and Type | Method and Description |
---|---|
ArrayToken |
ArrayToken.append(ArrayToken token)
Append the given array to the end of this array, and return the
resulting array.
|
static ArrayToken |
ArrayToken.append(ArrayToken[] tokens)
Append the given arrays.
|
static byte[] |
ArrayToken.arrayTokenToUnsignedByteArray(ArrayToken dataArrayToken)
Convert an ArrayToken to an array of unsigned bytes.
|
ArrayToken |
ArrayToken.extract(ArrayToken selection)
Extract a non-contiguous subarray either by giving a boolean array
of the same length of this array describing which elements to
include and which to include, or by giving an an array of an
arbitrary length giving the indices of elements from this array
to include in the subarray.
|
Constructor and Description |
---|
UpdatedArrayToken(ArrayToken baseToken,
int index,
Token newValue)
Construct an UpdatedArrayToken that is equal to the specified
baseToken, except at index, where its value is
newValue.
|
Modifier and Type | Method and Description |
---|---|
static ArrayToken |
UtilityFunctions.arrayType(Token t)
Return a new UnsizedArrayToken whose element type is the same
as the given type.
|
static ArrayToken |
UtilityFunctions.arrayType(Token t,
IntToken numberOfTimes)
Return a new UnsizedArrayToken whose element type is the same
as the given type, and whose length is the given length.
|
static ArrayToken |
UtilityFunctions.concatenate(ArrayToken token)
Concatenate an array of arrays into a single array.
|
static ArrayToken |
UtilityFunctions.concatenate(ArrayToken token1,
ArrayToken token2)
Concatenate two arrays.
|
static ArrayToken |
UtilityFunctions.emptyArray(Token prototype)
Return an empty array with its element type matching
the specified token.
|
static ArrayToken |
UtilityFunctions.filter(FunctionToken predicate,
ArrayToken array)
Extract a sub-array consisting of all of the elements of an
array for which the given predicate function returns true.
|
static ArrayToken |
UtilityFunctions.filter(FunctionToken predicate,
ArrayToken array,
IntToken sizeLimit)
Extract a sub-array consisting of all of the elements of an
array for which the given predicate function returns true.
|
static ArrayToken |
UtilityFunctions.find(ArrayToken array)
Find all true-valued elements in an array of boolean values,
returning an array containing the indices (in ascending order)
of all occurrences of the value 'true'.
|
static ArrayToken |
UtilityFunctions.find(ArrayToken array,
Token match)
Find all elements in an array that match the specified token
and return an array containing their indices (in ascending order).
|
static ArrayToken |
UtilityFunctions.gaussian(double mean,
double standardDeviation,
int length)
Return an array of Gaussian random numbers.
|
static ArrayToken |
UtilityFunctions.iterate(FunctionToken function,
int length,
Token initial)
Iterate the specified function to produce an array of the specified
length.
|
static ArrayToken |
UtilityFunctions.map(FunctionToken function,
ArrayToken array)
Apply the specified function to the specified array and return
an array with the results.
|
static ArrayToken |
UtilityFunctions.multivariateGaussian(ArrayToken mean,
DoubleMatrixToken covariance)
Generate a sample from a multivariate Gaussian distribution.
|
static ArrayToken |
UtilityFunctions.multivariateGaussian(double[] mean,
double[][] S)
Generate a sample from a multivariate Gaussian distribution.
|
static ArrayToken |
UtilityFunctions.random(int length)
Return an array of IID random numbers with value greater than
or equal to 0.0 and less than 1.0.
|
static ArrayToken |
UtilityFunctions.repeat(IntToken numberOfTimes,
Token element)
Create an array that contains the specified element
repeated the specified number of times.
|
static ArrayToken |
UtilityFunctions.sort(ArrayToken array)
Return a new array that is the sorted contents of a specified
array, in ascending order.
|
static ArrayToken |
UtilityFunctions.sortAscending(ArrayToken array)
Return a new array that is the sorted contents of a specified
array, in ascending order.
|
static ArrayToken |
UtilityFunctions.sortDescending(ArrayToken array)
Return a new array that is the sorted contents of a specified
array, in descending order.
|
static ArrayToken |
UtilityFunctions.subarray(ArrayToken array,
IntToken index,
IntToken count)
Return the contiguous subarray of the specified array
starting at the specified index and of the specified length.
|
Modifier and Type | Method and Description |
---|---|
static ArrayToken |
UtilityFunctions.concatenate(ArrayToken token)
Concatenate an array of arrays into a single array.
|
static ArrayToken |
UtilityFunctions.concatenate(ArrayToken token1,
ArrayToken token2)
Concatenate two arrays.
|
static ArrayToken |
UtilityFunctions.filter(FunctionToken predicate,
ArrayToken array)
Extract a sub-array consisting of all of the elements of an
array for which the given predicate function returns true.
|
static ArrayToken |
UtilityFunctions.filter(FunctionToken predicate,
ArrayToken array,
IntToken sizeLimit)
Extract a sub-array consisting of all of the elements of an
array for which the given predicate function returns true.
|
static ArrayToken |
UtilityFunctions.find(ArrayToken array)
Find all true-valued elements in an array of boolean values,
returning an array containing the indices (in ascending order)
of all occurrences of the value 'true'.
|
static ArrayToken |
UtilityFunctions.find(ArrayToken array,
Token match)
Find all elements in an array that match the specified token
and return an array containing their indices (in ascending order).
|
static ArrayToken |
UtilityFunctions.map(FunctionToken function,
ArrayToken array)
Apply the specified function to the specified array and return
an array with the results.
|
static ScalarToken |
UtilityFunctions.max(ArrayToken array)
Return the maximum of the contents of the array.
|
static ScalarToken |
UtilityFunctions.min(ArrayToken array)
Return the minimum of the contents of the array.
|
static ArrayToken |
UtilityFunctions.multivariateGaussian(ArrayToken mean,
DoubleMatrixToken covariance)
Generate a sample from a multivariate Gaussian distribution.
|
static ArrayToken |
UtilityFunctions.sort(ArrayToken array)
Return a new array that is the sorted contents of a specified
array, in ascending order.
|
static ArrayToken |
UtilityFunctions.sortAscending(ArrayToken array)
Return a new array that is the sorted contents of a specified
array, in ascending order.
|
static ArrayToken |
UtilityFunctions.sortDescending(ArrayToken array)
Return a new array that is the sorted contents of a specified
array, in descending order.
|
static ArrayToken |
UtilityFunctions.subarray(ArrayToken array,
IntToken index,
IntToken count)
Return the contiguous subarray of the specified array
starting at the specified index and of the specified length.
|
static Token |
UtilityFunctions.sum(ArrayToken array)
Return the sum of the elements in the specified array.
|