CFEngine API

org.recommender.algorithms
Class CorrelationCoeff

java.lang.Object
  |
  +--org.recommender.algorithms.CorrelationCoeff
All Implemented Interfaces:
java.lang.Comparable

public class CorrelationCoeff
extends java.lang.Object
implements java.lang.Comparable

Simple struct to hold coeff value along with userID.

Author:
Irwin Yoon, Daniel Lowd

Constructor Summary
CorrelationCoeff(int userID, float val)
          Constructors with both userID and coeff are known.
 
Method Summary
 int compareTo(java.lang.Object o)
          Implemented to satisfy Comparable.
 float getCoeff()
          Accessor, return coefficient.
 int getUserID()
          Accessor, return userID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CorrelationCoeff

public CorrelationCoeff(int userID,
                        float val)
Constructors with both userID and coeff are known.

Parameters:
userID -
val -
Method Detail

getUserID

public int getUserID()
Accessor, return userID.

Returns:
userID

getCoeff

public float getCoeff()
Accessor, return coefficient.

Returns:
coeff

compareTo

public int compareTo(java.lang.Object o)
Implemented to satisfy Comparable. Allows for CorrelationCoeff to be sorted according to ones coeff score

Specified by:
compareTo in interface java.lang.Comparable

CFEngine API

Copyright © 2003 - Oregon State University www.orst.edu