Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
k-means_step6.cpp File Reference
#include <thrill/api/all_gather.hpp>
#include <thrill/api/cache.hpp>
#include <thrill/api/generate.hpp>
#include <thrill/api/print.hpp>
#include <thrill/api/read_lines.hpp>
#include <thrill/api/reduce_by_key.hpp>
#include <thrill/api/sample.hpp>
#include <thrill/api/write_lines.hpp>
#include <boost/spirit/include/qi.hpp>
#include <ostream>
#include <random>
#include <sstream>
#include <string>
#include <vector>
+ Include dependency graph for k-means_step6.cpp:

Go to the source code of this file.

Functions

thrill::DIA< Point > GeneratePoints (thrill::Context &ctx)
 
thrill::DIA< Point > LoadPoints (thrill::Context &ctx, const char *path)
 [step6 LoadPoints] More...
 
int main (int argc, char *argv[])
 [step6 LoadPoints] More...
 
std::ostream & operator<< (std::ostream &os, const Point &p)
 make ostream-able for Print() More...
 
std::ostream & operator<< (std::ostream &os, const ClosestCenter &cc)
 make ostream-able for Print() More...
 
void Process (const thrill::DIA< Point > &points, const char *output)
 our main processing method More...
 

Function Documentation

thrill::DIA<Point> GeneratePoints ( thrill::Context &  ctx)

Definition at line 128 of file k-means_step6.cpp.

References thrill::api::Generate().

Referenced by main().

thrill::DIA<Point> LoadPoints ( thrill::Context &  ctx,
const char *  path 
)

[step6 LoadPoints]

Definition at line 144 of file k-means_step6.cpp.

References die, and thrill::api::ReadLines().

Referenced by main().

int main ( int  argc,
char *  argv[] 
)

[step6 LoadPoints]

Definition at line 172 of file k-means_step6.cpp.

References GeneratePoints(), LoadPoints(), Process(), and thrill::api::Run().

std::ostream& operator<< ( std::ostream &  os,
const Point &  p 
)

make ostream-able for Print()

Definition at line 50 of file k-means_step6.cpp.

std::ostream& operator<< ( std::ostream &  os,
const ClosestCenter &  cc 
)

make ostream-able for Print()

Definition at line 61 of file k-means_step6.cpp.

void Process ( const thrill::DIA< Point > &  points,
const char *  output 
)

our main processing method

Definition at line 67 of file k-means_step6.cpp.

References thrill::mem::to_string().

Referenced by main().