src/classify/picofeat.cpp
void NormalizePicoX(FEATURE_SET FeatureSet) {
  int i;
  FEATURE Feature;
  float Origin = 0.0;

  for (i = 0; i < FeatureSet->NumFeatures; i++) {
    Feature = FeatureSet->Features[i];
    Origin += Feature->Params[PicoFeatX];
  }
  Origin /= FeatureSet->NumFeatures;

  for (i = 0; i < FeatureSet->NumFeatures; i++) {
    Feature = FeatureSet->Features[i];
    Feature->Params[PicoFeatX] -= Origin;
  }
}
/*---------------------------------------------------------------------------*/
/**
 * This routine computes the average x position over all
 * of the pico-features in FeatureSet and then renormalizes
 * the pico-features to force this average to be the x origin
 * (i.e. x=0).
 * FeatureSet is changed.
 * @param FeatureSet pico-features to be normalized
 */
This routine computes the average x position over all
of the pico-features in FeatureSet and then renormalizes
the pico-features to force this average to be the x origin
.
FeatureSet is changed.
@param FeatureSet pico-features to be normalized
This routine computes the average x position over all of the pico - features in FeatureSet and then renormalizes the pico - features to force this average to be the x origin . FeatureSet is changed . @param FeatureSet pico - features to be normalized
void NormalizePicoX(FEATURE_SET FeatureSet) {
  int i;
  FEATURE Feature;
  float Origin = 0.0;
  for (i = 0; i < FeatureSet->NumFeatures; i++) {
    Feature = FeatureSet->Features[i];
    Origin += Feature->Params[PicoFeatX];
  }
  Origin /= FeatureSet->NumFeatures;
  for (i = 0; i < FeatureSet->NumFeatures; i++) {
    Feature = FeatureSet->Features[i];
    Feature->Params[PicoFeatX] -= Origin;
  }
}
void NormalizePicoX ( FEATURE_SET FeatureSet ) { int i ; FEATURE Feature ; float Origin = 0.0 ; for ( i = 0 ; i < FeatureSet -> NumFeatures ; i ++ ) { Feature = FeatureSet -> Features [ i ] ; Origin += Feature -> Params [ PicoFeatX ] ; } Origin /= FeatureSet -> NumFeatures ; for ( i = 0 ; i < FeatureSet -> NumFeatures ; i ++ ) { Feature = FeatureSet -> Features [ i ] ; Feature -> Params [ PicoFeatX ] -= Origin ; } }
This routine computes the average x position over all
 of the pico-features in FeatureSet and then renormalizes
 the pico-features to force this average to be the x origin
 (i.e.
This routine computes the average x position over all of the pico - features in FeatureSet and then renormalizes the pico - features to force this average to be the x origin ( i . e .