public class DefaultPermutationFunction extends Object implements PermutationFunction<Vector>, Serializable
O(k) time to compute a single
permutation, where k is the number of non-zero elements in the Vector.| Constructor and Description |
|---|
DefaultPermutationFunction()
Creates an empty
DefaultPermutationFunction. |
public DefaultPermutationFunction()
DefaultPermutationFunction.public Vector permute(Vector v, int numPermutations)
TernaryVector the specified number of
times.permute in interface PermutationFunction<Vector>v - an index vector to permutenumPermutations - the number of times the permutation function
should be applied to the provided index vector.Copyright © 2012. All Rights Reserved.