#include <pitsync1.h>
Definition at line 32 of file pitsync1.h.
◆ FPSEGPT() [1/4]
◆ FPSEGPT() [2/4]
FPSEGPT::FPSEGPT |
( |
int16_t |
x | ) |
|
◆ FPSEGPT() [3/4]
FPSEGPT::FPSEGPT |
( |
int16_t |
x, |
|
|
BOOL8 |
faking, |
|
|
int16_t |
offset, |
|
|
int16_t |
region_index, |
|
|
int16_t |
pitch, |
|
|
int16_t |
pitch_error, |
|
|
FPSEGPT_LIST * |
prev_list |
|
) |
| |
Definition at line 80 of file pitsync1.cpp.
101 FPSEGPT_IT pred_it = prev_list;
107 best_fake = INT16_MAX;
109 for (pred_it.mark_cycle_pt (); !pred_it.cycled_list (); pred_it.forward ()) {
110 segpt = pred_it.data ();
113 dist = x - segpt->xpos;
114 if (dist >= pitch - pitch_error && dist <= pitch + pitch_error
116 total = segpt->mean_sum + dist;
117 sq_dist = dist * dist + segpt->sq_sum + offset * offset;
119 mean = total / region_index;
120 factor = mean - pitch;
122 factor += sq_dist / (region_index) - mean * mean;
◆ FPSEGPT() [4/4]
FPSEGPT::FPSEGPT |
( |
FPCUTPT * |
cutpt | ) |
|
Definition at line 39 of file pitsync1.cpp.
43 mean_sum = cutpt->
sum ();
int16_t cheap_cuts() const
◆ cheap_cuts()
int16_t FPSEGPT::cheap_cuts |
( |
| ) |
const |
|
inline |
◆ cost_function()
double FPSEGPT::cost_function |
( |
| ) |
|
|
inline |
◆ position()
int32_t FPSEGPT::position |
( |
| ) |
|
|
inline |
◆ previous()
◆ squares()
double FPSEGPT::squares |
( |
| ) |
|
|
inline |
◆ sum()
◆ fake_count
int16_t FPSEGPT::fake_count |
◆ faked
◆ terminal
The documentation for this class was generated from the following files: