Replace SortFloats()/RemapFloats() with stdlib's qsort and struct refactoring.
This commit is contained in:
parent
fc2a404acf
commit
29d07b168d
9 changed files with 98 additions and 188 deletions
|
@ -3,9 +3,11 @@
|
|||
#ifndef _DECOMPOSE_H
|
||||
#define _DECOMPOSE_H
|
||||
|
||||
#include "notefinder.h"
|
||||
|
||||
//Decompose a histogram into a series of normal distributions.
|
||||
int DecomposeHistogram( float * histogram, int bins, float * out_means, float * out_amps, float * out_sigmas, int max_dists, double default_sigma, int iterations );
|
||||
float CalcHistAt( float pt, int bins, float * out_means, float * out_amps, float * out_sigmas, int cur_dists );
|
||||
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 );
|
||||
|
||||
|
||||
#define TURBO_DECOMPOSE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue