#include <pitsync1.h>
List of all members.
Detailed Description
Definition at line 34 of file pitsync1.h.
Constructor & Destructor Documentation
FPSEGPT::FPSEGPT |
( |
inT16 |
x | ) |
|
Definition at line 71 of file pitsync1.cpp.
:xpos (x) {
mean_sum = 0;
sq_sum = 0;
cost = 0;
mid_cuts = 0;
}
Definition at line 91 of file pitsync1.cpp.
:xpos (x) {
double sq_dist;
double mean;
double total;
double factor;
FPSEGPT_IT pred_it = prev_list;
mid_cuts = 0;
for (pred_it.mark_cycle_pt (); !pred_it.cycled_list (); pred_it.forward ()) {
segpt = pred_it.data ();
dist = x - segpt->xpos;
if (dist >= pitch - pitch_error && dist <= pitch + pitch_error
total = segpt->mean_sum + dist;
sq_dist = dist * dist + segpt->sq_sum + offset * offset;
mean = total / region_index;
factor = mean - pitch;
factor *= factor;
factor += sq_dist / (region_index) - mean * mean;
if (factor < cost) {
cost = factor;
pred = segpt;
mean_sum = total;
sq_sum = sq_dist;
}
}
}
}
FPSEGPT::FPSEGPT |
( |
FPCUTPT * |
cutpt | ) |
|
Member Function Documentation
inT16 FPSEGPT::cheap_cuts |
( |
| ) |
const |
|
inline |
double FPSEGPT::cost_function |
( |
| ) |
|
|
inline |
inT32 FPSEGPT::position |
( |
| ) |
|
|
inline |
double FPSEGPT::squares |
( |
| ) |
|
|
inline |
Member Data Documentation
inT16 FPSEGPT::fake_count |
The documentation for this class was generated from the following files: