PitchInterpolatorStats Struct Reference
Collaboration diagram for PitchInterpolatorStats:

Public Member Functions

 PitchInterpolatorStats ()
 
void Print ()
 

Public Attributes

int64 num_frames_tot
 
int64 num_frames_zero
 
int64 num_frames_changed
 

Detailed Description

Definition at line 60 of file interpolate-pitch.cc.

Constructor & Destructor Documentation

◆ PitchInterpolatorStats()

Member Function Documentation

◆ Print()

void Print ( )
inline

Definition at line 68 of file interpolate-pitch.cc.

References KALDI_LOG.

Referenced by main().

68  {
69  BaseFloat zero_percent = num_frames_zero * 100.0 / num_frames_tot,
70  changed_percent = num_frames_changed * 100.0 / num_frames_tot;
71  KALDI_LOG << "Over " << num_frames_tot << " frames, "
72  << zero_percent << "% were zero at input, and "
73  << changed_percent << "% were not zero but were changed.";
74  }
float BaseFloat
Definition: kaldi-types.h:29
#define KALDI_LOG
Definition: kaldi-error.h:153

Member Data Documentation

◆ num_frames_changed

int64 num_frames_changed

Definition at line 63 of file interpolate-pitch.cc.

Referenced by PitchInterpolator::Backtrace().

◆ num_frames_tot

int64 num_frames_tot

Definition at line 61 of file interpolate-pitch.cc.

Referenced by PitchInterpolator::Backtrace().

◆ num_frames_zero

int64 num_frames_zero

Definition at line 62 of file interpolate-pitch.cc.

Referenced by PitchInterpolator::Backtrace().


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