libtpcmodext
 All Files Functions Variables Defines
Functions
weight.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "include/libtpcmodext.h"
Include dependency graph for weight.c:

Go to the source code of this file.

Functions

int dftWeightByFreq (DFT *dft)

Function Documentation

int dftWeightByFreq ( DFT *  dft)

Add weights based on sample frequency or frame length. Existing weights are overwritten.

Returns:
Returns 0 when successful, otherwise <>0.
Parameters:
dftSamples/frames must be sorted by sample time, but duplicate samples are allowed

Definition at line 48 of file weight.c.