Skip to content

Commit

Permalink
removed unused variable result
Browse files Browse the repository at this point in the history
  • Loading branch information
lambday authored and karlnapf committed Jul 3, 2016
1 parent 374caad commit 09f8af0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/shogun/statistical_testing/HypothesisTest.cpp
Expand Up @@ -78,9 +78,7 @@ float64_t CHypothesisTest::compute_p_value(float64_t statistic)

float64_t CHypothesisTest::compute_threshold(float64_t alpha)
{
float64_t result = 0;
SGVector<float64_t> values = sample_null();

std::sort(values.vector, values.vector + values.vlen);
return values[index_t(CMath::floor(values.vlen * (1 - alpha)))];
}
Expand Down

0 comments on commit 09f8af0

Please sign in to comment.