Revision 28:7927e7afbe07 CepstrumPitchTracker.h

View differences:

CepstrumPitchTracker.h
101 101
            Expired
102 102
        };
103 103

  
104
        bool test(Estimate);
105

  
106
        void advanceTime();
104
        bool accept(Estimate);
107 105

  
108 106
        State getState();
109 107

  
......
115 113

  
116 114
    private:
117 115
        bool isWithinTolerance(Estimate);
116
        bool isOutOfDateFor(Estimate);
118 117
        bool isSatisfied();
119 118
        double getMeanFrequency();
120 119

  
121 120
        State m_state;
122 121
        Estimates m_pending;
123
        int m_age;
124 122
    };
125 123

  
126 124
    typedef std::vector<Hypothesis> Hypotheses;
127 125
    Hypotheses m_possible;
128
    Hypothesis m_accepted;
126
    Hypothesis m_good;
129 127

  
130 128
    void filter(const double *in, double *out);
131 129
    double cubicInterpolate(const double[4], double);

Also available in: Unified diff