# PRCPrototypeEntry

## Definitions

      #include <nitro/prc.h>

      typedef struct PRCPrototypeEntry
      {
      BOOL                enabled;
      u32                 kind;
      u16                 code;
      fx16                correction;
      void*               data;
      int                 pointIndex;
      u16                 pointCount;
      u16                 strokeCount;
      } PRCPrototypeEntry;

## Elements

enabled | Whether this entry is enabled.
kind | The bit field representation of this entry's kind.
code | Code value.
correction | Correction for a score.
data | The user data that is associated with this entry.
pointIndex | The ordinal position of the entry's coordinate data in `PRCPrototypeList.pointArray`.
pointCount | The number of points that constitute the entry.
strokeCount | The number of strokes that constitute the entry.

## Description

This structure is included in the `PRCPrototypeList` structure as the attribute information for each entry in the sample DB. It is returned as the recognition results of `PRC_GetRecognizedEntry*`.

`correction` is a numerical correction value for the entry score in the recognition algorithm. If the preadjusted score is placed in `score`, the corrected value will become `FX_Mul(score, FX32_ONE - correction) + correction`. That is, if `correction` is 0, there will be no correction. The score will increase as a value increases in the positive direction and decrease as the number decreases in the negative direction.

The `kind` attribute is for use with the `kindMask` option in functions such as `PRC_GetRecognizedEntry*` to restrict the kind of pattern that is targeted for matching. Use it so that a bit is set for each pattern kind.

## See Also

`PRC_GetRecognizedEntry*, PRC_GetEntryCode, PRC_GetEntryData
`

## Revision History

06/23/2004 Initial Version