public class VectorialSequences extends Object
Modifier and Type | Field and Description |
---|---|
static String |
STDKEYWORD |
Constructor and Description |
---|
VectorialSequences() |
Modifier and Type | Method and Description |
---|---|
static double[][] |
getDifference(Alignment<Node,Node> path)
Returns the difference at each operation of the given AlignmentPath.
|
static double[][][] |
getExtensions(Alignment<Node,Node> path)
Returns the sequence extensions modelled by this AlignmentPath.
|
static AlignmentSpecification |
setUpSpecification(Sequence[] dataSpace)
Sets up an AlignmentSpecification for an array of vectorial sequences.
|
static AlignmentSpecification |
setUpSpecification(Sequence[] dataSpace,
double[] weights)
Sets up an AlignmentSpecification for an array of vectorial sequences.
|
static AlignmentSpecification |
setUpSpecification(Sequence[] dataSpace,
ValueComparator comparator)
Sets up an AlignmentSpecification for an array of vectorial sequences.
|
static AlignmentSpecification |
setUpSpecification(Sequence[] dataSpace,
ValueComparator[] comparators)
Sets up an AlignmentSpecification for an array of vectorial sequences.
|
static AlignmentSpecification |
setUpSpecification(Sequence[] dataSpace,
ValueComparator[] comparators,
double[] weights)
Sets up an AlignmentSpecification for an array of vectorial sequences.
|
static AlignmentSpecification |
setUpSpecification(Sequence[] dataSpace,
ValueComparator comparator,
double[] weights)
Sets up an AlignmentSpecification for an array of vectorial sequences.
|
static Sequence[] |
toSequences(double[][] arrays)
Transforms the given arrays to sequences.
|
static Sequence[] |
toSequences(double[][][] arrays)
Transforms the given arrays to sequences.
|
static Sequence[] |
toSequences(double[][][] arrays,
String[] keywords)
Transforms the given arrays to sequences.
|
static Sequence[] |
toSequences(double[][][] arrays,
String[] keywords,
int[] propertyDist)
Transforms the given arrays to sequences.
|
public static final String STDKEYWORD
public static Sequence[] toSequences(@NonNull double[][] arrays)
arrays
- an array of double arrays that shall be converted to
sequences.public static Sequence[] toSequences(@NonNull double[][][] arrays)
arrays
- an array of double matrices that shall be converted to
sequences.public static Sequence[] toSequences(@NonNull double[][][] arrays, @NonNull String[] keywords)
arrays
- an array of double matrices that shall be converted to
sequences.keywords
- an array containing a name for each dimension of the
input sequences.public static Sequence[] toSequences(@NonNull double[][][] arrays, @NonNull String[] keywords, @NonNull int[] propertyDist)
arrays
- an array of double matrices that shall be converted to
sequences.keywords
- an array containing a name for each property of the
input resulting sequence.propertyDist
- the distribution of sequence dimensions to properties
in terms of an index set. Say you want to have three properties, labelled
"pos", "rot", "alpha", where "pos" and "rot" should be three-dimensional
vectors each, defining the cartesian coordinates of an object in 3d-space
and the rotation of it in terms of axis angles. The last property is a
scalar specifying the transparency of the object. Then your input arrays
should have length 7 in the third dimension, your keywords array should
be
{"pos","rot","alpha"} and your propertyDist array should be [3,6],
meaning that of those 7 entries the entries 0 to 2 should be mapped to
the "pos" property, the entries 3 to 5 should be mapped to the "rot"
property and the last entry (6) should be mapped to "alpha".public static AlignmentSpecification setUpSpecification(Sequence[] dataSpace)
dataSpace
- an array of sequences.public static AlignmentSpecification setUpSpecification(Sequence[] dataSpace, ValueComparator comparator)
dataSpace
- an array of sequences.comparator
- a comparator that works on VectorialValues.public static AlignmentSpecification setUpSpecification(Sequence[] dataSpace, @NonNull ValueComparator[] comparators)
dataSpace
- an array of sequences.comparators
- a comparator for each dimension that works on
VectorialValues.public static AlignmentSpecification setUpSpecification(Sequence[] dataSpace, @NonNull double[] weights)
dataSpace
- an array of sequences.weights
- a weighting putting emphasis on certain properties.public static AlignmentSpecification setUpSpecification(Sequence[] dataSpace, @NonNull ValueComparator comparator, @NonNull double[] weights)
dataSpace
- an array of sequences.comparator
- a comparator that works on VectorialValues.weights
- a weighting putting emphasis on certain properties.public static AlignmentSpecification setUpSpecification(Sequence[] dataSpace, @NonNull ValueComparator[] comparators, @NonNull double[] weights)
dataSpace
- an array of sequences.comparators
- an array of comparators that works on VectorialValues.weights
- a weighting putting emphasis on certain properties.public static double[][][] getExtensions(@NonNull Alignment<Node,Node> path)
path
- an AlignmentPath.Copyright (C) 2016 Benjamin Paaßen, AG Theoretical Computer Science, Centre of Excellence Cognitive Interaction Technology (CITEC), University of Bielefeld, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/tcs . This documentation is licensed under the conditions of CC-BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/