| 121 | } |
| 122 | |
| 123 | void get_features ( |
| 124 | const lhs_element& left, |
| 125 | const rhs_element& right, |
| 126 | feature_vector_type& feats |
| 127 | ) const |
| 128 | /*! |
| 129 | ensures |
| 130 | - #feats == PSI(left,right) |
| 131 | (i.e. This function computes a feature vector which, in some sense, |
| 132 | captures information useful for deciding if matching left to right |
| 133 | is "good"). |
| 134 | !*/ |
| 135 | { |
| 136 | // Let's just use the squared difference between each vector as our features. |
| 137 | // However, it should be emphasized that how to compute the features here is very |
| 138 | // problem dependent. |
| 139 | feats = squared(left - right); |
| 140 | } |
| 141 | |
| 142 | }; |
| 143 | |