public enum CompareFunction extends Enum<CompareFunction>
Enum Constant and Description |
---|
absDiff |
delta |
equal |
gaussSim |
table |
Modifier and Type | Method and Description |
---|---|
abstract double |
apply(double x,
double y,
double s)
Applies the function to the provided values.
|
static CompareFunction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompareFunction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompareFunction absDiff
public static final CompareFunction gaussSim
public static final CompareFunction delta
public static final CompareFunction equal
public static final CompareFunction table
public static CompareFunction[] values()
for (CompareFunction c : CompareFunction.values()) System.out.println(c);
public static CompareFunction valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract double apply(double x, double y, double s)
x
- the value to be comparedy
- the value to compare x withs
- similarity scaleCopyright © 2021 Actian Corporation. All rights reserved.