tesseract  5.0.0-alpha-619-ge9db
tesseract::ParamsTrainingHypothesis Struct Reference

#include <params_training_featdef.h>

Public Member Functions

 ParamsTrainingHypothesis ()
 
 ParamsTrainingHypothesis (const ParamsTrainingHypothesis &other)
 
ParamsTrainingHypothesisoperator= (const ParamsTrainingHypothesis &other)
 

Public Attributes

float features [PTRAIN_NUM_FEATURE_TYPES]
 
STRING str
 
float cost
 

Detailed Description

Definition at line 106 of file params_training_featdef.h.

Constructor & Destructor Documentation

◆ ParamsTrainingHypothesis() [1/2]

tesseract::ParamsTrainingHypothesis::ParamsTrainingHypothesis ( )
inline

Definition at line 107 of file params_training_featdef.h.

107  : cost(0.0) {
108  memset(features, 0, sizeof(features));
109  }

◆ ParamsTrainingHypothesis() [2/2]

tesseract::ParamsTrainingHypothesis::ParamsTrainingHypothesis ( const ParamsTrainingHypothesis other)
inline

Definition at line 110 of file params_training_featdef.h.

110  {
111  memcpy(features, other.features, sizeof(features));
112  str = other.str;
113  cost = other.cost;
114  }

Member Function Documentation

◆ operator=()

ParamsTrainingHypothesis& tesseract::ParamsTrainingHypothesis::operator= ( const ParamsTrainingHypothesis other)
inline

Definition at line 115 of file params_training_featdef.h.

115  {
116  memcpy(features, other.features, sizeof(features));
117  str = other.str;
118  cost = other.cost;
119  return *this;
120  }

Member Data Documentation

◆ cost

float tesseract::ParamsTrainingHypothesis::cost

Definition at line 123 of file params_training_featdef.h.

◆ features

float tesseract::ParamsTrainingHypothesis::features[PTRAIN_NUM_FEATURE_TYPES]

Definition at line 121 of file params_training_featdef.h.

◆ str

STRING tesseract::ParamsTrainingHypothesis::str

Definition at line 122 of file params_training_featdef.h.


The documentation for this struct was generated from the following file:
tesseract::ParamsTrainingHypothesis::str
STRING str
Definition: params_training_featdef.h:122
tesseract::ParamsTrainingHypothesis::features
float features[PTRAIN_NUM_FEATURE_TYPES]
Definition: params_training_featdef.h:121
tesseract::ParamsTrainingHypothesis::cost
float cost
Definition: params_training_featdef.h:123