|
latest version v1.9 - last update 24 Nov 2005 |
|
#include <ltiDraw2DDistribution.h>
Inheritance diagram for lti::draw2DDistribution< T >:


Public Member Functions | |
| draw2DDistribution () | |
| draw2DDistribution (const draw2DDistribution &other) | |
| virtual | ~draw2DDistribution () |
| virtual const char * | getTypeName () const |
| bool | apply (drawBase< T > &drawer, const dmatrix &dist, const bool &hold=false, const char *style="ow0") const |
| bool | apply (drawBase< T > &drawer, const dmatrix &dist, const int first, const int second, const bool hold=false, const char *style="ow") const |
| bool | apply (drawBase< T > &drawer, const dvector &x, const dvector &y, const bool hold=false, const char *style="ow") const |
| bool | apply (drawBase< T > &drawer, const dmatrix &dist, const ivector &ids, const bool &hold=false) const |
| bool | apply (drawBase< T > &drawer, const dmatrix &dist1, const ivector &ids1, const dmatrix &dist2, const ivector &ids2, const bool &hold=false) const |
| draw2DDistribution< T > & | copy (const draw2DDistribution< T > &other) |
| draw2DDistribution< T > & | operator= (const draw2DDistribution< T > &other) |
| virtual functor * | clone () const |
| const parameters & | getParameters () const |
Protected Attributes | |
| dmatrix * | testDist |
| ivector * | testIds |
| dmatrix * | trainDist |
| ivector * | trainIds |
| std::map< int, char * > * | styles |
| std::map< int, T > * | colorMap |
Classes | |
| class | parameters |
| the parameters for the class draw2DDistribution More... | |
If you want to draw the distribution into an eps picture it is mandatory to specify a size for the eps picture. For example:
epsdraw<cmykColor> drawer(std::out,point(800,800));
The apply methods draws each point from the given matrices into the given image. It is expected that each row of the matrix represents one point If there is also a vector with ids corresponding to each point in the matrices each id is drawn in an other color or style. First all colors are permuted. (In channels this is only white). After this, if there are more ids than colors available, the style of the points is permuted. If there is no id-vector you can assign a color an the style that will be used. According to the parameter hold the old points that are drawn before are saved. If an instance of this class is used later the old points that were saved will appear to in the image.
|
|||||||||
|
default constructor
|
|
||||||||||
|
copy constructor
|
|
|||||||||
|
destructor
|
|
||||||||||||||||||||||||||||||||
|
Draws the points in dist1 and dist2 into an image. In ids1 and ids2 the ids according to the points in dist1 and dist2 are expected. For each new ID a new style is used. If points in dist1 and dist2 have equal ids, the pionts will be drawn with the same symbol and color, but the symbol will be filled.
|
|
||||||||||||||||||||||||
|
Draws the points in dist into an image. For each new ID a new style is used.
|
|
||||||||||||||||||||||||||||
|
Draws the point in the two vectors, taking the first as abscissa and the second as ordinate.
|
|
||||||||||||||||||||||||||||||||
|
Draws two dimensions of dist.
|
|
||||||||||||||||||||||||
|
Draws the points in dist with the given style into an image.
|
|
|||||||||
|
returns a pointer to a clone of this functor.
Implements lti::functor. |
|
||||||||||
|
copy data of "other" functor.
|
|
|||||||||
|
returns used parameters
Reimplemented from lti::functor. |
|
|||||||||
|
returns the name of this type ("draw2DDistribution")
Reimplemented from lti::functor. |
|
||||||||||
|
alias for copy member
|
|
|||||
|
map with the color according to the ids
|
|
|||||
|
map with the styles according to the ids
|
|
|||||
|
the distribution with the test points
|
|
|||||
|
the ids of the points in testDist
|
|
|||||
|
the distribution with the test points
|
|
|||||
|
the ids of the points in testDist
|