SYMBOL INDEX (178 symbols across 34 files) FILE: c/hashmap.c function insert (line 9) | void insert(Point* pkey, Point* pelem) function iterator (line 32) | void iterator(gpointer key, gpointer value, gpointer ret) { function setCluster (line 37) | void setCluster(Clusters* ret) { FILE: c/kmeans.c function dist (line 12) | double dist(Point* p1, Point* p2) function average (line 20) | void average(PointArray* xs, Point* ret) function closest (line 33) | long closest(Point* p, PointArray* choices) function calcClusters (line 49) | void calcClusters(PointArray* xs, Clusters* clusters, PointArray* centro... function run (line 66) | void run(PointArray* xs, Clusters* clusters) FILE: c/kmeans.h type PointArray (line 6) | typedef struct { type Clusters (line 11) | typedef struct { FILE: c/main.c function getTime (line 13) | long int getTime(PointArray* xs, Clusters* clusters) { function main (line 26) | int main() FILE: c/point.c function divide (line 7) | void divide(Point* p, long d) function add (line 14) | void add(Point* p1, Point* p2) function sub (line 21) | void sub(Point* p1, Point* p2) function sq (line 28) | double sq(double x) function modulus (line 33) | double modulus(Point* p) FILE: c/point.h type Point (line 4) | typedef struct { FILE: cpp/Point.cpp function Point (line 20) | Point Point::operator+(const Point& q) const { function Point (line 24) | Point Point::operator-(const Point& q) const { function Point (line 28) | Point Point::operator/(double k) const { function dist (line 44) | double dist(const Point& p, const Point& q) { function ostream (line 48) | ostream& operator<<(ostream& os, const Point& p) { FILE: cpp/Point.h function norm (line 14) | double norm() const; FILE: cpp/benchmark.cpp function Point (line 22) | Point read_point(const Json& json) { function read_points (line 30) | vector read_points(const string& path) { function main (line 45) | int main() { FILE: cpp/kmeans.cpp function Point (line 10) | Point average(const vector& v) { function Point (line 14) | Point closest(Point p, const vector& centroids) { function group_by (line 28) | unordered_map> group_by(const vector& points... function update_centroids (line 37) | void update_centroids(const vector& points, vector& centro... function kmeans (line 46) | vector kmeans(const vector& points, int n, int iterations) { FILE: cuda/src/point.h type Point (line 4) | typedef struct { type Centroid (line 11) | typedef struct { FILE: elixir/kmeans.ex class Kmeans (line 1) | defmodule Kmeans method sq (line 3) | defp sq(x) do method distance (line 7) | defp distance({x1, y1}, {x2, y2}) do method closest (line 11) | defp closest(point, centroids) do method clusters (line 15) | defp clusters(centroids, points) do method sum (line 19) | defp sum({x1, y1}, {x2, y2}) do method shrink (line 23) | defp shrink({x, y}, factor) do method average (line 27) | defp average(cluster) do method step (line 31) | defp step(points, iterations, centroids) do method run (line 38) | def run(points, k, iterations) do FILE: elixir/main.exs class Main (line 1) | defmodule Main method strip_brackets (line 3) | defp strip_brackets(xs) do method parse_float (line 7) | defp parse_float(xs) do method to_tuples (line 11) | defp to_tuples(xs) do method read_points (line 18) | defp read_points(filename) do method main (line 26) | def main() do FILE: go/main.go function sq (line 12) | func sq(x float64) float64 { type Point (line 16) | type Point struct method add (line 20) | func (p Point) add(p2 Point) Point { method sub (line 23) | func (p Point) sub(p2 Point) Point { method divide (line 26) | func (p Point) divide(d float64) Point { method modulus (line 29) | func (p Point) modulus() float64 { function dist (line 33) | func dist(p1 Point, p2 Point) float64 { function average (line 37) | func average(points []Point) Point { function closest (line 46) | func closest(p Point, choices []Point) int { function clusters (line 59) | func clusters(xs []Point, centroids []Point) [][]Point { function run (line 76) | func run(n int, iters int, xs []Point) [][]Point { function main (line 96) | func main() { FILE: java/src/main/java/Entry.java class Entry (line 7) | public class Entry { method main (line 11) | public static void main(String[] args) throws Exception { method executionTime (line 50) | private static void executionTime(KMeans kmeans) { FILE: java/src/main/java/KMeans.java class KMeans (line 7) | public class KMeans { method KMeans (line 15) | public KMeans(Point[] Xs, int n, int iters) { method KMeans (line 21) | public KMeans(Point[] Xs) { method dist (line 25) | private double dist(Point p1, Point p2) { method average (line 29) | private Point average(ArrayList xs) { method closest (line 40) | private Point closest(Point x, Point[] choices) { method clusters (line 53) | private Collection> clusters() { method run (line 66) | public Collection> run() { FILE: java/src/main/java/Point.java class Point (line 2) | public class Point { method Point (line 6) | public Point(double x, double y) { method divide (line 11) | public Point divide(double d) { method divideToThis (line 15) | public void divideToThis(double d) { method add (line 21) | public Point add(Point p2) { method addToThis (line 25) | public void addToThis(Point p2) { method sub (line 31) | public Point sub(Point p2) { method sq (line 35) | private double sq(double x) { method modulus (line 39) | public double modulus() { method toString (line 43) | @Override public String toString() { FILE: java8/src/main/java/com/example/KMeans.java class KMeans (line 14) | public class KMeans { method run (line 19) | public void run(List xs) { method clusters (line 29) | public Collection> clusters(List xs, List ce... method closest (line 33) | public Point closest(final Point x, List choices) { method sq (line 38) | public double sq(double x) { return x*x; } method dist (line 40) | public double dist(Point x, Point y) { return x.minus(y).getModulus(); } method average (line 42) | public Point average(List xs) { FILE: java8/src/main/java/com/example/Main.java class Main (line 17) | public class Main { method readPoints (line 19) | private List readPoints(String path) throws Exception { method main (line 26) | public void main() throws Exception { method main (line 40) | public static void main(String[] args) throws Exception { FILE: java8/src/main/java/com/example/Point.java class Point (line 6) | class Point { method Point (line 9) | public Point(double x, double y) { method getX (line 13) | public double getX() { method getY (line 17) | public double getY() { method plus (line 21) | public Point plus(Point p2) { method minus (line 24) | public Point minus(Point p2) { method div (line 27) | public Point div(double d) { method getModulus (line 30) | public Double getModulus() { return Math.sqrt(sq(x) + sq(y)); } method sq (line 31) | private double sq(double x) { return x*x; } method toString (line 33) | @Override FILE: node/kmeans.js function sq (line 4) | function sq(x) { return x * x } function dist (line 6) | function dist(x, y) { function closest (line 10) | function closest(x, choices) { function clusters (line 14) | function clusters(xs, centroids) { function vsum (line 21) | function vsum(v, w) { function average (line 25) | function average(xs) { function run (line 32) | function run(xs, n, iters) { FILE: opencl/point.h type Point (line 1) | typedef struct { type Centroid (line 7) | typedef struct { type Accum (line 12) | typedef struct { FILE: openmp/src/kmeans.c function group_by_cluster (line 10) | void group_by_cluster(Point* points, Centroid* centroids) function sum_points_cluster (line 34) | void sum_points_cluster(Point* points, Centroid* centroids) function update_centroids (line 50) | void update_centroids(Centroid* centroids) function clear_last_iteration (line 62) | void clear_last_iteration(Centroid* centroids) function km_execute (line 78) | void km_execute(Point* points, Centroid* centroids) FILE: openmp/src/main.c function print_me (line 18) | void print_me(Centroid* centroids) function run_kmeans (line 36) | long int run_kmeans(Point* points, Centroid* centroids) function main (line 78) | int main(int argc, char *argv[]) FILE: openmp/src/point.c function divide (line 7) | void divide(Point* p, long d) function add (line 14) | void add(Point* p1, Point* p2) function sub (line 21) | void sub(Point* p1, Point* p2) function sq (line 28) | double sq(double x) function modulus (line 33) | double modulus(Point* p) function km_distance (line 38) | double km_distance(Point* p, Centroid* c) FILE: openmp/src/point.h type Point (line 4) | typedef struct { type Centroid (line 10) | typedef struct { FILE: python/kmeans.py class Point (line 7) | class Point(object): method __init__ (line 10) | def __init__(self, x,y): method x (line 13) | def x(self): method y (line 15) | def y(self): method __add__ (line 17) | def __add__(self,other): method __div__ (line 19) | def __div__(self,value): method dist (line 21) | def dist(self,other): method closest (line 23) | def closest(self,points): method __repr__ (line 25) | def __repr__(self): function update_centroids (line 28) | def update_centroids(points,centroids): function groupby (line 35) | def groupby(points,centroids): function run (line 42) | def run(xs, n, iters=15): FILE: ruby/kmeans.rb class Point (line 3) | class Point method initialize (line 7) | def initialize(x, y) method + (line 12) | def +(other) method / (line 16) | def /(value) method dist (line 20) | def dist(other) method closest (line 24) | def closest(points) method inspect (line 30) | def inspect function update_centroids (line 35) | def update_centroids(points, centroids) function groupby (line 44) | def groupby(points, centroids) function run (line 53) | def run(xs, n, iters=15) FILE: rust/src/algo.rs function dist (line 6) | fn dist(v: Point, w: Point) -> f64 { function avg (line 10) | fn avg(points: &[Point]) -> Point { function closest (line 17) | fn closest(x: Point, ys: &[Point]) -> Point { function clusters (line 28) | fn clusters(xs: &[Point], centroids: &[Point]) -> Vec> { function run (line 50) | pub fn run(points: &[Point], n: u32, iters: u32) -> Vec> { FILE: rust/src/main.rs function benchmark (line 15) | fn benchmark(points: &[Point], times: i32) -> f64 { function main (line 27) | fn main() { FILE: rust/src/point.rs type Point (line 9) | pub struct Point(pub f64, pub f64); method norm (line 16) | pub fn norm(self: &Point) -> f64 { function sq (line 11) | fn sq(x: f64) -> f64 { method hash (line 22) | fn hash(&self, state: &mut H) { type Output (line 34) | type Output = Point; method add (line 36) | fn add(self, other: Point) -> Point { type Output (line 42) | type Output = Point; method sub (line 44) | fn sub(self, other: Point) -> Point { FILE: stanza/kmeansutils.c function getTime (line 8) | long int getTime() { function loadFile (line 17) | int loadFile() { function xValueAt (line 28) | double xValueAt(int i) { function yValueAt (line 34) | double yValueAt(int i) { FILE: x10/jsonRead.cc function parse (line 10) | void parse() { function nextX (line 26) | double nextX() { function nextY (line 30) | double nextY() { FILE: x10/jsonRead.java class jsonRead (line 2) | public class jsonRead { method initialize (line 10) | public static void initialize() { method getNextX (line 44) | public static double getNextX() { method getNextY (line 48) | public static double getNextY() {