| 546 | } |
| 547 | |
| 548 | std::vector<double> BSpline::Builder::extractUniqueSorted(const std::vector<double> &values) const |
| 549 | { |
| 550 | // Sort and remove duplicates |
| 551 | std::vector<double> unique(values); |
| 552 | std::sort(unique.begin(), unique.end()); |
| 553 | std::vector<double>::iterator it = unique_copy(unique.begin(), unique.end(), unique.begin()); |
| 554 | unique.resize(distance(unique.begin(),it)); |
| 555 | return unique; |
| 556 | } |
| 557 | |
| 558 | } // namespace SPLINTER |
nothing calls this directly
no outgoing calls
no test coverage detected