ailiaAudioComplexNorm method

int ailiaAudioComplexNorm(
  1. Pointer<Void> dst,
  2. Pointer<Void> src,
  3. int src_n,
  4. double power
)

~japanese @brief 複素数のノルムを算出します @param dst 出力データのポインタ、float 型、要素数 src_n @param src 入力データのポインタ、float 型、外側から src_n, 2(実部、虚部) 順のメモリレイアウト @param src_n 入力データの要素数 @param power 累乗値( > 0.0 )、1.0で複素数絶対値に相当 @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details 入力データのノルムを算出します src_cmp = src0 + src1 i において tmp_dst = pow(src0,2.0) + pow(src1,2.0) dst0 = pow(tmp_dst,0.5*power);

~english @brief Get the norm of the complex signal. @param dst pointer to the output data, of float format, and of length src_n @param src pointer to the input data, of float format, an array of length (2 * src_n) (sequence of complex pairs real part, imaginary part). (memory layout, using the row-major convention: (src_n, 2)) @param src_n length of the input data @param power exponent to apply to the spectrogram (> 0.0). 1.0: amplitude spectrogram @return In case of success, \ref AILIA_STATUS_SUCCESS , and else an error code is returned. @details Compute the norm of the input data. For each src_cmp = src0 + i * src1, tmp_dst = pow(src0,2.0) + pow(src1,2.0) dst0 = pow(tmp_dst,0.5*power);

Implementation

int ailiaAudioComplexNorm(
  ffi.Pointer<ffi.Void> dst,
  ffi.Pointer<ffi.Void> src,
  int src_n,
  double power,
) {
  return _ailiaAudioComplexNorm(
    dst,
    src,
    src_n,
    power,
  );
}