/// <summary> /// Clones this data point. /// </summary> /// <returns>A copy of the data point</returns> public object Clone() { ImageDataPoint <T> clone = new ImageDataPoint <T>(); clone._row = _row; clone._column = _column; clone._featureValue = _featureValue; clone._label = _label; clone._image = _image; clone._weight = _weight; return(clone); }
/// <summary> /// Compares this point to <paramref name="other"/>. /// </summary> /// <param name="other">Point to compare to</param> /// <returns>Positive if this point is greater, negative if this point is less than, zero if equal</returns> public int CompareTo(ImageDataPoint <T> other) { if (ImageID == other.ImageID) { if (_row == other._row) { return(_column.CompareTo(other._column)); } else { return(_row.CompareTo(other._row)); } } else { return(ImageID.CompareTo(other.ImageID)); } }