34CHISQUARE[DF][NALPHAS] =
35{ { 7.88, 6.63, 5.02, 3.84, 2.71, 1.32 },
36 { 10.6, 9.21, 7.38, 5.99, 4.61, 2.77 },
37 { 12.8, 11.3, 9.35, 7.81, 6.25, 4.11 },
38 { 14.9, 13.3, 11.1, 9.49, 7.78, 5.39 },
39 { 16.7, 15.1, 12.8, 11.1, 9.24, 6.63 },
40 { 18.5, 16.8, 14.4, 12.6, 10.6, 7.84 },
41 { 20.3, 18.5, 16.0, 14.1, 12.0, 9.04 },
42 { 22.0, 20.1, 17.5, 15.5, 13.4, 10.2 },
43 { 23.6, 21.7, 19.0, 16.9, 14.7, 11.4 },
44 { 25.2, 23.2, 20.5, 18.3, 16.0, 12.5 },
45 { 26.8, 24.7, 21.9, 19.7, 17.3, 13.7 },
46 { 28.3, 26.2, 23.3, 21.0, 18.5, 14.8 },
47 { 29.8, 27.7, 24.7, 22.4, 19.8, 16.0 },
48 { 31.3, 29.1, 26.1, 23.7, 21.1, 17.1 },
49 { 32.8, 30.6, 27.5, 25.0, 22.3, 18.2 },
50 { 34.3, 32.0, 28.8, 26.3, 23.5, 19.4 },
51 { 35.7, 33.4, 30.2, 27.6, 24.8, 20.5 },
52 { 37.2, 34.8, 31.5, 28.9, 26.0, 21.6 },
53 { 38.6, 36.2, 32.9, 30.1, 27.2, 22.7 },
54 { 40.0, 37.6, 34.2, 31.4, 28.4, 23.8 }
57#define COLUMN(a) ((a) <= 5 ? 0 : ((a) <= 10 ? 1 : ((a) <= 20 ? 2 : ((a) <= 50 ? 3 : ((a) <= 100 ? 4 : 5)))))
58#define RADIANS(d) ((d)*M_PI/180.0)
69 const int idx(
void)
const {
return idx_; }
71 bool operator < (
const Endpoint &rhs)
const {
return idx_ < rhs.idx_; }
77typedef std::vector<Endpoint> EndpointsVector;
85 const int NumEps(
void)
const {
return endpoints_.size(); }
86 const Endpoint &Ep(
int i)
const {
return endpoints_.at(i); }
88 void IterativeLineSplit(
int fromIdx,
int toIdx);
89 void IterativeLineSplit(
void);
91 void PushGuiData(
GuiData *gui_data)
const;
97 EndpointsVector endpoints_;
100typedef std::vector<HRegion> RegionsVector;
124void FindHomogeneousRegions(
const Scan &s, RegionsVector *r);
125void IterativeLineFitting(
const Scan &s, RegionsVector *r);
Definition hregions.hh:65
Definition hregions.hh:80