es.yrbcn.graph.weighted
Enum WeightedPageRank.Norm

java.lang.Object
  extended by java.lang.Enum<WeightedPageRank.Norm>
      extended by 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.


Enum Constant Summary
INFTY
           
L1
           
L2
           
 
Method Summary
abstract  double compute(double[] v)
           
static WeightedPageRank.Norm valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WeightedPageRank.Norm[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

L1

public static final WeightedPageRank.Norm L1

L2

public static final WeightedPageRank.Norm L2

INFTY

public static final WeightedPageRank.Norm INFTY
Method Detail

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)