tesseract v5.3.3.20231005
tesseract::ParamsTrainingHypothesis Struct Reference

#include <params_training_featdef.h>

Public Member Functions

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

Public Attributes

std::string str
 
float features [PTRAIN_NUM_FEATURE_TYPES]
 
float cost
 

Detailed Description

Definition at line 105 of file params_training_featdef.h.

Constructor & Destructor Documentation

◆ ParamsTrainingHypothesis() [1/2]

tesseract::ParamsTrainingHypothesis::ParamsTrainingHypothesis ( )
inline

Definition at line 106 of file params_training_featdef.h.

106 : cost(0.0) {
107 memset(features, 0, sizeof(features));
108 }
float features[PTRAIN_NUM_FEATURE_TYPES]

◆ ParamsTrainingHypothesis() [2/2]

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

Definition at line 109 of file params_training_featdef.h.

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

Member Function Documentation

◆ operator=()

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

Definition at line 114 of file params_training_featdef.h.

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

Member Data Documentation

◆ cost

float tesseract::ParamsTrainingHypothesis::cost

Definition at line 122 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

std::string tesseract::ParamsTrainingHypothesis::str

Definition at line 120 of file params_training_featdef.h.


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