Public Member Functions | |
NPclassify (readConfig &settings, readConfig &polySet, bool commandLineSettings=false) | |
create object with readConfig as defaults | |
void | inputCommandLineSettings (double _distance, double _children, double Idistance, double Ichildren, long _hardClassSize, long _hardLinkSize, double _polyDensObjectCut1, double _polyDensObjectCut2, double _polyDensObjectCut3) |
input command line settings for some variables insted of using .conf | |
void | addPoint (std::vector< long > point) |
add a point to the space | |
void | addSpace (std::vector< std::vector< double > > &space, long sSize=0) |
add whole space (concatinates if data is there) | |
void | echoSpace () |
echo the space you are working in | |
void | resetSpace () |
reset the dataset to empty (dose not resize vectors) | |
void | classifySpaceNew () |
classify space based upon rules given, for the first time | |
void | classifySpaceKmeans (unsigned int K) |
classify space using K-Means | |
void | classifySpacePartial () |
classify space in subsequent iterations | |
long | getStemNumber () |
return how many stems there are (how many classes) | |
double | getMaxDensity () |
return the max density value | |
bool | isLowDensity (long item) |
return if this point is a low density point | |
bool | isStem (long item) |
return if this item is a stem | |
std::vector< double > | getDensity () |
return density weight map (linear) | |
std::vector< long > | getStems () |
Returns a vector of all class parents. | |
long | getClassSize (long _Class) |
Return how many points/vectors are in class n (1... n). | |
long | getMinClassSize () |
return what is set as the minimum class size | |
std::vector< long > | getClass (long _Class) |
Return class n as a vector (Set of all points/vectors in this class). | |
long | getClass (long _Class, long item) |
Return item n from class m. | |
double | getFeature (long m_feature_index, long n_vector_index) |
Return feature m of vector n. | |
std::vector< long > | getParents () |
returns parents | |
std::vector< std::vector< long > > | getChildren () |
Returns a vector of all decendants (children, grandchildren) or all nodes. | |
std::vector< std::vector< long > > | getBoundingBoxes () |
calculate and return simple bounding boxes for classes | |
void | metaClassify (int objects) |
analyze classification stratagy. create meta classifier | |
Public Attributes | |
int | doLinkMap |
int | doDensityMap |
int | doClassMap |
int | usePolySet |
Definition at line 45 of file NPclassify.H.
NPclassify::NPclassify | ( | readConfig & | settings, | |
readConfig & | polySet, | |||
bool | commandLineSettings = false | |||
) |
create object with readConfig as defaults
Definition at line 66 of file NPclassify.C.
References readConfig::getItemValueF(), and resetSpace().
void NPclassify::addPoint | ( | std::vector< long > | point | ) |
add a point to the space
Definition at line 128 of file NPclassify.C.
void NPclassify::addSpace | ( | std::vector< std::vector< double > > & | space, | |
long | sSize = 0 | |||
) |
add whole space (concatinates if data is there)
space | This is a set of feature vectors as a vector of vectors | |
sSize | This is how many elements you are adding leave blank if \ the number of elements equals the vector size |
Definition at line 133 of file NPclassify.C.
void NPclassify::classifySpaceKmeans | ( | unsigned int | K | ) |
classify space using K-Means
void NPclassify::classifySpaceNew | ( | ) |
classify space based upon rules given, for the first time
Definition at line 168 of file NPclassify.C.
References Timer::reset().
void NPclassify::classifySpacePartial | ( | ) |
classify space in subsequent iterations
Definition at line 211 of file NPclassify.C.
void NPclassify::echoSpace | ( | ) |
echo the space you are working in
Definition at line 149 of file NPclassify.C.
std::vector< std::vector< long > > NPclassify::getBoundingBoxes | ( | ) |
calculate and return simple bounding boxes for classes
Definition at line 286 of file NPclassify.C.
std::vector< std::vector< long > > NPclassify::getChildren | ( | ) |
Returns a vector of all decendants (children, grandchildren) or all nodes.
Definition at line 281 of file NPclassify.C.
long NPclassify::getClass | ( | long | _Class, | |
long | item | |||
) |
std::vector< long > NPclassify::getClass | ( | long | _Class | ) |
Return class n as a vector (Set of all points/vectors in this class).
Definition at line 255 of file NPclassify.C.
References ASSERT.
long NPclassify::getClassSize | ( | long | _Class | ) |
Return how many points/vectors are in class n (1... n).
Definition at line 244 of file NPclassify.C.
References ASSERT.
std::vector< double > NPclassify::getDensity | ( | ) |
return density weight map (linear)
Definition at line 234 of file NPclassify.C.
double NPclassify::getFeature | ( | long | m_feature_index, | |
long | n_vector_index | |||
) |
double NPclassify::getMaxDensity | ( | ) |
return the max density value
Definition at line 219 of file NPclassify.C.
long NPclassify::getMinClassSize | ( | ) |
return what is set as the minimum class size
Definition at line 250 of file NPclassify.C.
std::vector< long > NPclassify::getParents | ( | ) |
returns parents
Definition at line 276 of file NPclassify.C.
long NPclassify::getStemNumber | ( | ) |
return how many stems there are (how many classes)
Definition at line 214 of file NPclassify.C.
std::vector< long > NPclassify::getStems | ( | ) |
Returns a vector of all class parents.
Definition at line 239 of file NPclassify.C.
void NPclassify::inputCommandLineSettings | ( | double | _distance, | |
double | _children, | |||
double | Idistance, | |||
double | Ichildren, | |||
long | _hardClassSize, | |||
long | _hardLinkSize, | |||
double | _polyDensObjectCut1, | |||
double | _polyDensObjectCut2, | |||
double | _polyDensObjectCut3 | |||
) |
input command line settings for some variables insted of using .conf
Definition at line 110 of file NPclassify.C.
bool NPclassify::isLowDensity | ( | long | item | ) |
return if this point is a low density point
Definition at line 224 of file NPclassify.C.
bool NPclassify::isStem | ( | long | item | ) |
return if this item is a stem
Definition at line 229 of file NPclassify.C.
void NPclassify::metaClassify | ( | int | objects | ) |
analyze classification stratagy. create meta classifier
Definition at line 324 of file NPclassify.C.
void NPclassify::resetSpace | ( | ) |
reset the dataset to empty (dose not resize vectors)
Definition at line 160 of file NPclassify.C.
Referenced by NPclassify().