Sha256: 5d782ab3b67513e3f33cf1bcbf56f91e74f18107e9b4a8b18e9bb464a0a1337e
Contents?: true
Size: 621 Bytes
Versions: 8
Compression:
Stored size: 621 Bytes
Contents
#ifndef __example_h__ #define __example_h__ namespace DataSet { class DataSet; class Example { public: int size; Example(int size) : size(size) {} virtual ~Example() {} int category_index(DataSet *data_set); void set_category_index(DataSet *data_set, int index); virtual double get_value(int index) { return 0.0; } virtual void set_value(int index, double new_value) {} virtual double euclidean_distance(Example *other_example) { return 0.0; } virtual double cosine_distance(Example *other_example) { return 0.0; } virtual void print() {} }; } #endif
Version data entries
8 entries across 8 versions & 1 rubygems