|
| GMixedRelation () |
| Makes an empty relation. More...
|
|
| GMixedRelation (std::vector< size_t > &attrValues) |
| Construct a mixed relation. attrValues specifies the number of nominal values in each attribute (column), or 0 for continuous attributes. More...
|
|
| GMixedRelation (const GDomNode *pNode) |
| Loads from a DOM. More...
|
|
| GMixedRelation (const GRelation *pCopyMe) |
| Makes a copy of pCopyMe. More...
|
|
| GMixedRelation (const GRelation *pCopyMe, size_t firstAttr, size_t attrCount) |
| Makes a copy of the specified range of pCopyMe. More...
|
|
virtual | ~GMixedRelation () |
|
void | addAttr (size_t nValues) |
| If nValues is zero, adds a real attribute. If nValues is
0, adds an attribute with "nValues" nominal values
More...
|
|
void | addAttrs (size_t attrCount, size_t valueCount) |
| Adds "attrCount" new attributes, each with "valueCount" values. (Use valueCount=0 for continuous attributes.) More...
|
|
void | addAttrs (const GRelation ©Me, size_t firstAttr=0, size_t attrCount=INVALID_INDEX) |
| Copies the specified attributes and adds them to this relation. If attrCount < 0, then it will copy all attributes from firstAttr to the end. More...
|
|
virtual bool | areContinuous (size_t first=0, size_t count=INVALID_INDEX) const |
| Returns true iff all attributes in the specified range are continuous. More...
|
|
virtual bool | areNominal (size_t first=0, size_t count=INVALID_INDEX) const |
| Returns true iff all attributes in the specified range are nominal. More...
|
|
virtual GRelation * | clone () const |
| Makes a deep copy of this relation. More...
|
|
virtual GRelation * | cloneMinimal () const |
| Returns a relation containing the same value counts as this object, but not containing superfluous things, such as human-readable strings. (The returned relation may be of a different type.) More...
|
|
virtual GRelation * | cloneSub (size_t start, size_t count) const |
| Makes a deep copy of the specified subset of this relation. More...
|
|
void | copy (const GRelation *pCopyMe) |
| Flushes this relation and then copies all of the attributes from pCopyMe. More...
|
|
virtual void | copyAttr (const GRelation *pThat, size_t nAttr) |
| Adds a copy of the specified attribute to this relation. More...
|
|
virtual void | deleteAttributes (size_t nAttr, size_t count) |
| Deletes an attribute. More...
|
|
virtual void | flush () |
| Deletes all the attributes. More...
|
|
virtual GDomNode * | serialize (GDom *pDoc) const |
| Marshalls this object to a DOM, which can be saved to a variety of serial formats. More...
|
|
virtual void | setAttrValueCount (size_t nAttr, size_t nValues) |
| Sets the number of values for this attribute. More...
|
|
virtual size_t | size () const |
| Returns the total number of attributes in this relation. More...
|
|
virtual void | swapAttributes (size_t nAttr1, size_t nAttr2) |
| Swaps two columns. More...
|
|
virtual RelationType | type () const |
| Returns the type of relation. More...
|
|
virtual size_t | valueCount (size_t nAttr) const |
| Returns the number of nominal values in the specified attribute. 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...
|
|
virtual bool | isCompatible (const GRelation &that) const |
| Returns true iff this and that have the same number of values for each attribute. 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...
|
|