38 BLOB_CHOICE_IT b_it(
get(col, row));
39 for (b_it.mark_cycle_pt(); !b_it.cycled_list(); b_it.forward()) {
62 for (
int col = ind; col >= 0 && col > ind - band_width; --col) {
63 if (
array_[col * band_width + band_width - 1] !=
empty_) {
70 for (
int col = 0; col < dim; ++col) {
71 for (
int row = col; row < dim && row < col +
bandwidth(); ++row) {
74 BLOB_CHOICE_LIST* choices =
get(col, row);
75 if (choices != NULL) {
77 BLOB_CHOICE_IT bc_it(choices);
78 for (bc_it.mark_cycle_pt(); !bc_it.cycled_list(); bc_it.forward()) {
83 result->
put(coord.
col, coord.
row, choices);
98 for (
int col = 0; col < dim; ++col) {
99 for (
int row = col; row < dim && row < col + band_width; ++row) {
100 BLOB_CHOICE_LIST* choices =
get(col, row);
101 if (choices != NULL) {
102 BLOB_CHOICE_LIST* copy_choices =
new BLOB_CHOICE_LIST;
104 result->
put(col, row, copy_choices);
113 tprintf(
"Ratings Matrix (top 3 choices)\n");
117 for (col = 0; col < dim; ++col) {
118 for (row = col; row < dim && row < col + band_width; ++row) {
119 BLOB_CHOICE_LIST *rating = this->
get(col, row);
121 BLOB_CHOICE_IT b_it(rating);
122 tprintf(
"col=%d row=%d ", col, row);
123 for (b_it.mark_cycle_pt(); !b_it.cycled_list(); b_it.forward()) {
126 b_it.data()->rating(), b_it.data()->certainty());
133 for (col = 0; col < dim; ++col)
tprintf(
"\t%d", col);
135 for (row = 0; row < dim; ++row) {
136 for (col = 0; col <= row; ++col) {
137 if (col == 0)
tprintf(
"%d\t", row);
138 if (row >= col + band_width) {
142 BLOB_CHOICE_LIST *rating = this->
get(col, row);
144 BLOB_CHOICE_IT b_it(rating);
146 for (b_it.mark_cycle_pt(); !b_it.cycled_list(); b_it.forward()) {
150 if (counter == 3)
break;
void IncreaseBandSize(int bandwidth)
static BLOB_CHOICE * deep_copy(const BLOB_CHOICE *src)
void MapForSplit(int ind)
bool Classified(int col, int row, int wildcard_id) const
bool Valid(const MATRIX &m) const
MATRIX * ConsumeAndMakeBigger(int ind)
MATRIX(int dimension, int bandwidth)
void put(ICOORD pos, const T &thing)
BLOB_CHOICE_LIST * empty_
BLOB_CHOICE_LIST * * array_
MATRIX * DeepCopy() const
void set_matrix_cell(int col, int row)
bool IsClassified() const
void ResizeWithCopy(int size1, int size2)
const char * id_to_unichar(UNICHAR_ID id) const
void print(const UNICHARSET &unicharset) const