Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
k-means_step5.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 <ostream>
#include <random>
#include <sstream>
#include <string>
#include <vector>
+ Include dependency graph for k-means_step5.cpp:

Go to the source code of this file.

Functions

thrill::DIA< Point > GeneratePoints (thrill::Context &ctx)
 [step5 GeneratePoints] More...
 
thrill::DIA< Point > LoadPoints (thrill::Context &ctx, const char *path)
 [step5 GeneratePoints] More...
 
int main (int argc, char *argv[])
 [step5 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)
 

Function Documentation

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

[step5 GeneratePoints]

Examples:
examples/tutorial/k-means_step5.cpp, and examples/tutorial/k-means_step6.cpp.

Definition at line 130 of file k-means_step5.cpp.

References thrill::api::Generate().

Referenced by main().

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

[step5 GeneratePoints]

[step5 LoadPoints]

Examples:
examples/tutorial/k-means_step5.cpp, and examples/tutorial/k-means_step6.cpp.

Definition at line 147 of file k-means_step5.cpp.

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

Referenced by main().

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

[step5 LoadPoints]

[step5 Run launcher]

Definition at line 166 of file k-means_step5.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 47 of file k-means_step5.cpp.

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

make ostream-able for Print()

Definition at line 58 of file k-means_step5.cpp.

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

[step5 new Process signature] our main processing method

[step5 new Process signature]

[step5 WriteLines output]

[step5 WriteLines output]

Definition at line 65 of file k-means_step5.cpp.

References thrill::mem::to_string().

Referenced by main().