#include <gdescriptionfilter.h>
Public Member Functions | |
GDescriptionFilter (void) | |
void | CopyFilter (const GDescription &src, GDescription &dest, size_t lmax, size_t lmin) |
void | WriteFile (const R::RString &dir, size_t id, size_t nb, GConcept *concept) |
~GDescriptionFilter (void) | |
Private Attributes | |
const GConceptRef ** | Order |
size_t | MaxOrderSize |
Detailed Description
The GDescriptionFilter provides a representation for description filter: it copies the most and the weighted concepts from each vector from one description to another.
In practice, each class that need such as a tool, can inherit from it (this avoid the allocation and deallocation of multiple blocks on the heap)
Constructor & Destructor Documentation
GDescriptionFilter | ( | void | ) |
Constructor.
~GDescriptionFilter | ( | void | ) |
Destructor.
Member Function Documentation
void CopyFilter | ( | const GDescription & | src, |
GDescription & | dest, | ||
size_t | lmax, | ||
size_t | lmin | ||
) |
Copy a description in another one by filtering some elements.
- Parameters
-
src Source description. dest Destination description. lmax Maximum number of most weighted concepts to copy for each vector (if null, all the concepts are copied). lmin Maximum number of irrelevant concepts (negative weights)to copy for each vector.
void WriteFile | ( | const R::RString & | dir, |
size_t | id, | ||
size_t | nb, | ||
GConcept * | concept | ||
) |
Write the content of the 'Order' vector in a file called 'X-Y' where X is the identifier id and Y the identifier of the vector.
- Parameters
-
dir Directory where to write. id Identifier. nb Number of elements of order to write. concept Concept associated to a vector.
Member Data Documentation
|
private |
Ordered vector for current computed profile.
|
private |
Size of the ordered vector.