src/classify/adaptive.cpp
TEMP_CONFIG_STRUCT::TEMP_CONFIG_STRUCT(int maxProtoId, int fontinfoId) {
  int NumProtos = maxProtoId + 1;

  Protos = NewBitVector(NumProtos);

  NumTimesSeen = 1;
  MaxProtoId = maxProtoId;
  ProtoVectorSize = WordsInVectorOfSize(NumProtos);
  zero_all_bits(Protos, ProtoVectorSize);
  FontinfoId = fontinfoId;
}
/// This constructor allocates and returns a new temporary config.
///
/// @param MaxProtoId  max id of any proto in new config
/// @param FontinfoId font information from pre-trained templates
This constructor allocates and returns a new temporary config.
This constructor allocates and returns a new temporary config .
TEMP_CONFIG_STRUCT::TEMP_CONFIG_STRUCT(int maxProtoId, int fontinfoId) {
  int NumProtos = maxProtoId + 1;
  Protos = NewBitVector(NumProtos);
  NumTimesSeen = 1;
  MaxProtoId = maxProtoId;
  ProtoVectorSize = WordsInVectorOfSize(NumProtos);
  zero_all_bits(Protos, ProtoVectorSize);
  FontinfoId = fontinfoId;
}
TEMP_CONFIG_STRUCT :: TEMP_CONFIG_STRUCT ( int maxProtoId , int fontinfoId ) { int NumProtos = maxProtoId + 1 ; Protos = NewBitVector ( NumProtos ) ; NumTimesSeen = 1 ; MaxProtoId = maxProtoId ; ProtoVectorSize = WordsInVectorOfSize ( NumProtos ) ; zero_all_bits ( Protos , ProtoVectorSize ) ; FontinfoId = fontinfoId ; }
This constructor allocates and returns a new temporary config.
This constructor allocates and returns a new temporary config .