public class RelationPermutationFunction<T extends Vector> extends Object implements DependencyPermutationFunction<T>, Serializable
DependencyPermutationFunction
for permuting a Vector
based on a dependecny path, represented as a list of DependencyRelation
s. A passed in PermutationFunction
is used to
permute the Vector
s based on the path length.PermutationFunction
,
Serialized FormConstructor and Description |
---|
RelationPermutationFunction(PermutationFunction<T> permFunc)
Creates a new
DefaultDependencyPermutationFunction that wraps an
existing PermutationFunction . |
Modifier and Type | Method and Description |
---|---|
T |
permute(T vector,
DependencyPath path)
Returns a permuted form of {code vector} based on the dependency path
provided.
|
public RelationPermutationFunction(PermutationFunction<T> permFunc)
DefaultDependencyPermutationFunction
that wraps an
existing PermutationFunction
.public T permute(T vector, DependencyPath path)
Copyright © 2012. All Rights Reserved.