statistics.cpp File Reference

#include <cstdio>
#include <assert.h>
#include <qstring.h>
#include <stdio.h>
#include <qpixmap.h>
#include <qpainter.h>
#include <qtextedit.h>
#include <qlabel.h>
#include "bpmdj.h"
#include "song.h"
#include "histogram-type.h"
#include "echo-property.h"
#include "selector.h"
#include "spectrum-type.h"
#include "signals.h"
#include "files.h"
#include "statistics.h"
#include "memory.h"
#include "pca.h"
#include "vector-iterator.h"
#include "database.h"
Include dependency graph for statistics.cpp:

Functions

void mean_spectrum (spectrum_type *spectrum)
void dev_spectrum (spectrum_type *spectrum)
void stop_mean_spectrum ()
void stop_dev_spectrum ()
float4 normalize_freq (float4 in, int band)
void mean_echo_old (echo_property echo)
void stop_mean_echo_old ()
void dev_echo (echo_property echo)
void stop_dev_echo ()
float4 normalize_echo_old (float4 val, int band, int delay)
void statistics_first_pass (Song *song)
void statistics_prepare_second_pass ()
void statistics_second_pass (Song *song)
void statistics_stop_second_pass ()
float4 stats_get_freq (int band)
float4 stats_get_band_freq (int band)
float4 stats_get_freq_dev (int band)
float4 stats_get_echo_old (int band, int delay)
int bit_rev (int in, int check)

Variables

spectrum_freq devs [spectrum_size]
spectrum_freq means [spectrum_size]
float8 ** echo_mean = NULL
float8 ** echo_dev = NULL

Function Documentation

int bit_rev ( int  in,
int  check 
)
void dev_echo ( echo_property  echo  ) 
void dev_spectrum ( spectrum_type spectrum  ) 
void mean_echo_old ( echo_property  echo  ) 
void mean_spectrum ( spectrum_type spectrum  ) 

In comparison to pre2.7 versions, the spectrum scale is now calculated differently first we take the mean value. Based on this we also take the mean variation rescaling happened by subtracting the mean and then dividing by the standard deviation

References spectrum_type::band(), i, means, no_spectrum, and spectrum_size.

Referenced by statistics_first_pass().

float4 normalize_echo_old ( float4  val,
int  band,
int  delay 
)

References echo_dev, and echo_mean.

float4 normalize_freq ( float4  in,
int  band 
)

References devs, and means.

Referenced by SongMetriek::spectrum_dist().

void statistics_first_pass ( Song song  ) 

References mean_spectrum().

void statistics_prepare_second_pass (  ) 

References stop_mean_spectrum().

void statistics_second_pass ( Song song  ) 

References dev_spectrum().

void statistics_stop_second_pass (  ) 

References stop_dev_spectrum().

float4 stats_get_band_freq ( int  band  ) 

References barkbounds.

float4 stats_get_echo_old ( int  band,
int  delay 
)

References echo_mean.

float4 stats_get_freq ( int  band  ) 

References assert(), and means.

float4 stats_get_freq_dev ( int  band  ) 

References devs.

void stop_dev_echo (  ) 

References echo_dev, echo_prop_sx, i, and spectrum_size.

void stop_dev_spectrum (  ) 

References devs, i, and spectrum_size.

Referenced by statistics_stop_second_pass().

void stop_mean_echo_old (  ) 

References echo_mean, echo_prop_sx, i, and spectrum_size.

void stop_mean_spectrum (  ) 

References i, means, and spectrum_size.

Referenced by statistics_prepare_second_pass().


Variable Documentation

spectrum_freq devs[spectrum_size]
Initial value:
 
  {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}

Referenced by dev_spectrum(), normalize_freq(), stats_get_freq_dev(), and stop_dev_spectrum().

float8** echo_dev = NULL
float8** echo_mean = NULL
spectrum_freq means[spectrum_size]
Initial value:
 
  {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}

Referenced by dev_spectrum(), mean_spectrum(), normalize_freq(), stats_get_freq(), and stop_mean_spectrum().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by  doxygen 1.6.2