A relation with a minimal memory footprint that assumes all attributes are continuous, or all of them are nominal and have the same number of possible values.
|
| GUniformRelation (size_t attrCount, size_t values=0) |
|
| GUniformRelation (const GDomNode *pNode) |
|
virtual bool | areContinuous (size_t first=0, size_t count=INVALID_INDEX) const |
| See the comment for GRelation::areContinuous. More...
|
|
virtual bool | areNominal (size_t first=0, size_t count=INVALID_INDEX) const |
| See the comment for GRelation::areNominal. More...
|
|
virtual GRelation * | clone () const |
| Returns a copy of this object. More...
|
|
virtual GRelation * | cloneMinimal () const |
| Returns a copy of this object. More...
|
|
virtual GRelation * | cloneSub (size_t, size_t count) const |
| Returns a deep copy of the specified subset of this relation. More...
|
|
virtual void | deleteAttributes (size_t index, size_t count) |
| Drop the specified attribute. More...
|
|
virtual bool | isCompatible (const GRelation &that) const |
| Returns true iff this and that have the same number of values for each attribute. More...
|
|
virtual GDomNode * | serialize (GDom *pDoc) const |
| Serializes this object. More...
|
|
virtual size_t | size () const |
| Returns the number of attributes (columns) More...
|
|
virtual void | swapAttributes (size_t, size_t) |
| Swap two attributes (since all attributes are identical, does nothing) More...
|
|
virtual RelationType | type () const |
| Returns the type of relation. More...
|
|
virtual size_t | valueCount (size_t) const |
| Returns the number of values in each nominal attribute (or 0 if the attributes are continuous) More...
|
|
| GRelation () |
|
virtual | ~GRelation () |
|
virtual std::string | attrNameStr (std::size_t nAttr) const |
| Returns the name of the attribute with index nAttr as a standard string object or "" if the atribute has no name. More...
|
|
void | print (std::ostream &stream) const |
| Prints this relation in ARFF format to the specified stream. More...
|
|
virtual void | printAttrName (std::ostream &stream, size_t column) const |
| Prints the specified attribute name to a stream. More...
|
|
virtual void | printAttrValue (std::ostream &stream, size_t column, double value, const char *missing="?") const |
| Prints the specified value to a stream. More...
|
|
void | printRow (std::ostream &stream, const double *pRow, char separator= ',', const char *missing="?") const |
| Print a single row of data in ARFF format. More...
|
|
void | save (const GMatrix *pData, const char *szFilename) const |
| Saves to a file. More...
|
|