X-Boost  2.3.8
Public Types | Public Member Functions | Public Attributes | List of all members
Pattern< Descriptor > Struct Template Reference

#include <Pattern.h>

Inherits Descriptor.

Inherited by WeightedPattern< Descriptor >.

Public Types

typedef Descriptor DataType
 Data Type.
 

Public Member Functions

 Pattern (const Descriptor &d, int cat)
 

Public Attributes

int category
 Pattern category (0..k-1 for multiclass problem, or -1|+1 for binary problem)
 
float weight
 weight associated to this pattern
 

Detailed Description

template<class Descriptor>
struct Pattern< Descriptor >

a Pattern object used in training. Pattern extend Descriptor (Descriptor or Precomputed data) with the category identifier. The Descriptor contains all "variable" data associated to the pattern.

This class is normally used for load pattern before the training (or used inside Decision Tree when weight patterns are not required). Un pattern e' normalmente l'oggetto che viene caricato da File.

Note
width, stride, height of descriptor are stored elsewhere to reduce memory consumption (see Descriptor::ParamType)
Parameters
Descriptora Descriptor (for example IntegralImageData object)

The documentation for this struct was generated from the following file: