C# Class MyMediaLite.Data.WeightedItem

Weighted items class
Inheritance: IComparable
显示文件 Open project: zenogantner/MML-KDD Class Usage Examples

Public Properties

Property Type Description
item_id int
weight double

Public Methods

Method Description
CompareTo ( Object o ) : int
Equals ( Object o ) : bool
Equals ( WeightedItem otherItem ) : bool
GetHashCode ( ) : int
WeightedItem ( ) : System

Default constructor

WeightedItem ( int item_id, double weight ) : System

Constructor

Method Details

CompareTo() public method

public CompareTo ( Object o ) : int
o Object
return int

Equals() public method

public Equals ( Object o ) : bool
o Object
return bool

Equals() public method

public Equals ( WeightedItem otherItem ) : bool
otherItem WeightedItem
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

WeightedItem() public method

Default constructor
public WeightedItem ( ) : System
return System

WeightedItem() public method

Constructor
public WeightedItem ( int item_id, double weight ) : System
item_id int the item ID
weight double the weight
return System

Property Details

item_id public_oe property

Item ID
public int item_id
return int

weight public_oe property

Weight
public double weight
return double