public class MinHashingTransformer extends java.lang.Object implements ISingleAttributeTransformer
| Constructor and Description |
|---|
MinHashingTransformer(int[][] permutations)
Constructor where the user gives predefined permutations.
|
MinHashingTransformer(int domainSize,
int signatureLength,
long seed)
Constructor where suitable permutations are created randomly.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
transformAttribute(IAttributeValue<?> attributeToTransform) |
public MinHashingTransformer(int[][] permutations)
permutations - Predefined permutations. The amount of permutations defines the
length of the signature the MinHashing creates and each
permutation has to have the length of the domain size.public MinHashingTransformer(int domainSize,
int signatureLength,
long seed)
domainSize - signatureLength - public double[] transformAttribute(IAttributeValue<?> attributeToTransform)
transformAttribute in interface ISingleAttributeTransformer