Skip to content
Snippets Groups Projects
Unverified Commit 90b7d188 authored by BARBIER Marc's avatar BARBIER Marc
Browse files

renamed some methods DBA => DTw since we no longer are using dba

parent 25a9973a
Branches
Tags v0.1.0
No related merge requests found
...@@ -117,10 +117,6 @@ public class ImageController extends AbstractController { ...@@ -117,10 +117,6 @@ public class ImageController extends AbstractController {
height = image.length; height = image.length;
width = image[0].length; width = image[0].length;
//DBA is extremely costly in memory so we use a windowed approach
// in the mid time this will allow to estimage the memory usage
// to calculate the memory usage sequences[i].length^2 * 12 * number of images
// wich make it un realisticly large. so we added a window allowing us to get only a subset of that
if(dataset == null) { if(dataset == null) {
dataset = new double[image[0][0].length][image[0].length * image.length][imageIds.length]; dataset = new double[image[0][0].length][image[0].length * image.length][imageIds.length];
} }
...@@ -135,7 +131,7 @@ public class ImageController extends AbstractController { ...@@ -135,7 +131,7 @@ public class ImageController extends AbstractController {
} }
@PostMapping("/image/dtwcluster") @PostMapping("/image/dtwcluster")
public ResponseEntity<String> DBAkmeans( public ResponseEntity<String> dtwKMeans(
@RequestParam("ids") int[] ids, @RequestParam("ids") int[] ids,
@RequestParam("k") int k, @RequestParam("k") int k,
@RequestParam("maxiterations") int iteration, @RequestParam("maxiterations") int iteration,
...@@ -203,7 +199,7 @@ public class ImageController extends AbstractController { ...@@ -203,7 +199,7 @@ public class ImageController extends AbstractController {
} }
@PostMapping("/image/cluster") @PostMapping("/image/cluster")
public ResponseEntity<String> kmeans( public ResponseEntity<String> kMeans(
@RequestParam("ids") int[] ids, @RequestParam("ids") int[] ids,
@RequestParam("k") int k, @RequestParam("k") int k,
@RequestParam("maxiterations") int iteration, @RequestParam("maxiterations") int iteration,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment