Skip to content

Commit

Permalink
slightly simplify example
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed May 5, 2012
1 parent f432068 commit 1f419bb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions examples/undocumented/libshogun/statistics.cpp
Expand Up @@ -16,18 +16,13 @@

using namespace shogun;

void print_message(FILE* target, const char* str)
{
fprintf(target, "%s", str);
}

const int DATA_SIZE=100;

int main(int argc, char **argv)
{
init_shogun(&print_message, &print_message, &print_message);
init_shogun_with_defaults();

SGVector<float64_t> data(DATA_SIZE, true);
SGVector<float64_t> data(DATA_SIZE);
CMath::random_vector(data.vector, data.vlen, 0.0, 1.0);

// for (int32_t i=0; i<DATA_SIZE; i++)
Expand Down

0 comments on commit 1f419bb

Please sign in to comment.