ipnorm

Functions

int main(int argc, char *argv[])

ipnorm [ option ] [ infile ]

  • -m int

    • order of mel-cepstral coefficients \((0 \le M)\)

  • infile str

    • double-type power-normalized mel-cepstral coefficients

  • stdout

    • double-type mel-cepstral coefficients

Parameters:
  • argc[in] Number of arguments.

  • argv[in] Argument vector.

Returns:

0 on success, 1 on failure.

See also

pnorm

class MelCepstrumInversePowerNormalization

Convert power-normalized mel-cepstral coefficients to mel-cepstral ones.

The input are the \(M\)-th order power-normalized mel-cepstral coefficients:

\[ \begin{array}{ccccc} \tilde{c}'(0), & \tilde{c}'(1), & \ldots, & \tilde{c}'(M), \end{array} \]
and \(\log P\) where \(P\) is the power and the output is the \(M\)-th order mel-cepstral coefficients:
\[ \begin{array}{cccc} \tilde{c}(0), & \tilde{c}(1), & \ldots, & \tilde{c}(M), \end{array} \]
where
\[\begin{split} \tilde{c}(m) = \left\{ \begin{array}{ll} \tilde{c}'(0) + \log \sqrt{P}, & m = 0 \\ \tilde{c}'(m). & 1 \le m \le M \end{array} \right. \end{split}\]

Public Functions

explicit MelCepstrumInversePowerNormalization(int num_order)
Parameters:

num_order[in] Order of coefficients, \(M\).

inline int GetNumOrder() const
Returns:

Order of coefficients.

inline bool IsValid() const
Returns:

True if this object is valid.

bool Run(const std::vector<double> &power_normalized_mel_cepstrum, double power, std::vector<double> *mel_cepstrum) const
Parameters:
  • power_normalized_mel_cepstrum[in] \(M\)-th order power-normalized mel-cepstral coefficients.

  • power[in] Logarithm of power.

  • mel_cepstrum[out] \(M\)-th order mel-cepstral coefficients.

Returns:

True on success, false on failure.

bool Run(std::vector<double> *input_and_output, double power) const
Parameters:
  • input_and_output[inout] \(M\)-th order coefficients.

  • power[in] Logarithm of power.

Returns:

True on success, false on failure.