2015-07-29 07:56:18 +02:00
|
|
|
//Copyright 2015 <>< Charles Lohr under the ColorChord License.
|
|
|
|
|
2015-01-07 04:51:39 +01:00
|
|
|
#ifndef _DECOMPOSE_H
|
|
|
|
#define _DECOMPOSE_H
|
|
|
|
|
2016-10-08 20:52:20 +02:00
|
|
|
#include "notefinder.h"
|
|
|
|
|
2015-01-07 04:51:39 +01:00
|
|
|
//Decompose a histogram into a series of normal distributions.
|
2016-10-08 20:52:20 +02:00
|
|
|
int DecomposeHistogram( float * histogram, int bins, struct NoteDists * out_dists, int max_dists, double default_sigma, int iterations );
|
|
|
|
float CalcHistAt( float pt, int bins, struct NoteDists * out_dists, int cur_dists );
|
2015-01-07 04:51:39 +01:00
|
|
|
|
|
|
|
|
|
|
|
#define TURBO_DECOMPOSE
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|