NaiveDBScan

Simple 2D DBScan Clustering Algorithm

Algorithmia Platform License

Try the API

{
  "datatype": "array",
  "pointClusters": [
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    2,
    3,
    3,
    3,
    3,
    3,
    3,
    3,
    3,
    3,
    3,
    3,
    3,
    3,
    3,
    3,
    3,
    3,
    3,
    3,
    3,
    3,
    3,
    3,
    3,
    3,
    3,
    3,
    3,
    3,
    3
  ]
}

Install & Use

Use

curl -X POST -d '[{"x":395,"y":86},{"x":396,"y":69},{"x":395,"y":70},{"x":394,"y":90},{"x":373,"y":70},{"x":372,"y":81},{"x":379,"y":65},{"x":375,"y":49},{"x":381,"y":75},{"x":390,"y":86},{"x":401,"y":88},{"x":387,"y":84},{"x":393,"y":64},{"x":396,"y":55},{"x":403,"y":92},{"x":399,"y":89},{"x":381,"y":52},{"x":402,"y":91},{"x":391,"y":67},{"x":404,"y":79},{"x":387,"y":82},{"x":400,"y":80},{"x":388,"y":77},{"x":396,"y":79},{"x":385,"y":71},{"x":403,"y":95},{"x":396,"y":79},{"x":370,"y":98},{"x":383,"y":98},{"x":371,"y":69},{"x":87,"y":176},{"x":85,"y":153},{"x":100,"y":153},{"x":100,"y":153},{"x":100,"y":172},{"x":108,"y":159},{"x":108,"y":158},{"x":86,"y":156},{"x":89,"y":158},{"x":99,"y":142},{"x":92,"y":122},{"x":106,"y":139},{"x":93,"y":135},{"x":125,"y":153},{"x":100,"y":157},{"x":79,"y":158},{"x":98,"y":158},{"x":89,"y":150},{"x":96,"y":161},{"x":107,"y":160},{"x":119,"y":157},{"x":122,"y":147},{"x":92,"y":152},{"x":96,"y":144},{"x":106,"y":175},{"x":116,"y":149},{"x":101,"y":144},{"x":117,"y":175},{"x":97,"y":162},{"x":99,"y":164},{"x":240,"y":251},{"x":235,"y":274},{"x":244,"y":230},{"x":241,"y":256},{"x":229,"y":256},{"x":230,"y":245},{"x":235,"y":255},{"x":234,"y":266},{"x":230,"y":247},{"x":223,"y":267},{"x":225,"y":265},{"x":236,"y":282},{"x":241,"y":266},{"x":245,"y":274},{"x":233,"y":266},{"x":236,"y":253},{"x":237,"y":272},{"x":223,"y":268},{"x":234,"y":282},{"x":217,"y":249},{"x":256,"y":265},{"x":231,"y":253},{"x":232,"y":249},{"x":226,"y":264},{"x":231,"y":256},{"x":239,"y":272},{"x":238,"y":291},{"x":234,"y":263},{"x":244,"y":282},{"x":231,"y":251}]' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/PBittencourt/NaiveDBScan/0.3.0