MyMediaLite  3.07
Public Member Functions | Properties
RatingScale Class Reference

Class containing information about the rating scale of a data set: valid rating values, minimum/maximum rating. More...

List of all members.

Public Member Functions

virtual void GetObjectData (SerializationInfo info, StreamingContext context)
 RatingScale (List< float > levels)
 Initializes a new instance of the MyMediaLite.Data.RatingScale class.
 RatingScale (IList< float > rating_values)
 Initializes a new instance of the MyMediaLite.Data.RatingScale class, given a list of float values.
 RatingScale (IList< byte > rating_values)
 Initializes a new instance of the MyMediaLite.Data.RatingScale class, given a list of byte values.
 RatingScale (RatingScale scale1, RatingScale scale2)
 Initializes a new instance of the MyMediaLite.Data.RatingScale class, given two existing instances.
 RatingScale (SerializationInfo info, StreamingContext context)

Properties

Dictionary< float, int > LevelID [get, set]
 mapping from level values to IDs
List< float > Levels [get, set]
 list of rating levels (actual values)
float Max [get, set]
 the maximum rating in the dataset
float Min [get, set]
 the minimum rating in the dataset

Detailed Description

Class containing information about the rating scale of a data set: valid rating values, minimum/maximum rating.


Constructor & Destructor Documentation

RatingScale ( List< float >  levels) [inline]

Initializes a new instance of the MyMediaLite.Data.RatingScale class.

Parameters:
levelsa list of observed levels
RatingScale ( IList< float >  rating_values) [inline]

Initializes a new instance of the MyMediaLite.Data.RatingScale class, given a list of float values.

Parameters:
rating_valuesthe ratings dataset
RatingScale ( IList< byte >  rating_values) [inline]

Initializes a new instance of the MyMediaLite.Data.RatingScale class, given a list of byte values.

Parameters:
rating_valuesthe ratings dataset
RatingScale ( RatingScale  scale1,
RatingScale  scale2 
) [inline]

Initializes a new instance of the MyMediaLite.Data.RatingScale class, given two existing instances.

Parameters:
scale1the first scale object
scale2the second scale object

Property Documentation

Dictionary<float, int> LevelID [get, set]

mapping from level values to IDs

List<float> Levels [get, set]

list of rating levels (actual values)

float Max [get, set]

the maximum rating in the dataset

float Min [get, set]

the minimum rating in the dataset


The documentation for this class was generated from the following file: