es.yrbcn.graph.weighted
Enum WeightedPageRank.Norm
java.lang.Object
java.lang.Enum<WeightedPageRank.Norm>
es.yrbcn.graph.weighted.WeightedPageRank.Norm
- All Implemented Interfaces:
- Serializable, Comparable<WeightedPageRank.Norm>
- Enclosing class:
- WeightedPageRank
public static enum WeightedPageRank.Norm
- extends Enum<WeightedPageRank.Norm>
Possible norms, with an implementation.
L1
public static final WeightedPageRank.Norm L1
L2
public static final WeightedPageRank.Norm L2
INFTY
public static final WeightedPageRank.Norm INFTY
values
public static WeightedPageRank.Norm[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (WeightedPageRank.Norm c : WeightedPageRank.Norm.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static WeightedPageRank.Norm valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
compute
public abstract double compute(double[] v)