Enum UserKNN.AggregationApproach
- java.lang.Object
-
- java.lang.Enum<UserKNN.AggregationApproach>
-
- es.upm.etsisi.cf4j.recommender.knn.UserKNN.AggregationApproach
-
- All Implemented Interfaces:
Serializable
,Comparable<UserKNN.AggregationApproach>
- Enclosing class:
- UserKNN
public static enum UserKNN.AggregationApproach extends Enum<UserKNN.AggregationApproach>
Available aggregation approaches to merge k-nearest neighbors ratings
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEVIATION_FROM_MEAN
MEAN
WEIGHTED_MEAN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UserKNN.AggregationApproach
valueOf(String name)
Returns the enum constant of this type with the specified name.static UserKNN.AggregationApproach[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MEAN
public static final UserKNN.AggregationApproach MEAN
-
WEIGHTED_MEAN
public static final UserKNN.AggregationApproach WEIGHTED_MEAN
-
DEVIATION_FROM_MEAN
public static final UserKNN.AggregationApproach DEVIATION_FROM_MEAN
-
-
Method Detail
-
values
public static UserKNN.AggregationApproach[] 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 (UserKNN.AggregationApproach c : UserKNN.AggregationApproach.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UserKNN.AggregationApproach 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 nameNullPointerException
- if the argument is null
-
-