Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removed centerpoint code already defined in master.
  • Loading branch information
Andrew Lawson authored and Andrew Lawson committed Nov 29, 2014
1 parent 670e0fc commit 3ac9d9b
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions geometric_separators.pde
Expand Up @@ -44,31 +44,6 @@ void mousePressed() {
redraw();
}

// Estimate centerpoint
void approxCenter(ArrayList<PVector> input) {
if (input.size() == 1) {
//return ArrayList.get(0);
}
else {
// Sample points

}
}

// Estimate the geometric median - dynamic programming
void geomMedian() {
// // Memoization hash tables
// HashMap<Double> left = new HashMap<Double>();
// HashMap<Double> right = new HashMap<Double>();
// HashMap<Double> up = new HashMap<Double>();
// HashMap<Double> down = new HashMap<Double>();
// // Sum of squares values
// ArrayList<Double> leftSq = new ArrayList<Double>();
// ArrayList<Double> rightSq = new ArrayList<Double>();
// ArrayList<Double> upSq = new ArrayList<Double>();
// ArrayList<Double> downSq = new ArrayList<Double>();
}

// Draw
void draw() {
background(255);
Expand Down

0 comments on commit 3ac9d9b

Please sign in to comment.