mirror of
https://github.com/Relintai/pmlpp.git
synced 2024-12-21 14:56:47 +01:00
Fix warnings I missed.
This commit is contained in:
parent
dbe25ef093
commit
7a30524998
@ -8,10 +8,10 @@
|
||||
|
||||
std::tuple<bool, real_t> MLPPHypothesisTesting::chiSquareTest(std::vector<real_t> observed, std::vector<real_t> expected) {
|
||||
//real_t df = observed.size() - 1; // These are our degrees of freedom
|
||||
real_t sum = 0;
|
||||
for (uint32_t i = 0; i < observed.size(); i++) {
|
||||
sum += (observed[i] - expected[i]) * (observed[i] - expected[i]) / expected[i];
|
||||
}
|
||||
//real_t sum = 0;
|
||||
//for (uint32_t i = 0; i < observed.size(); i++) {
|
||||
// sum += (observed[i] - expected[i]) * (observed[i] - expected[i]) / expected[i];
|
||||
//}
|
||||
|
||||
return std::tuple<bool, real_t>();
|
||||
}
|
||||
|
@ -243,7 +243,7 @@ Ref<MLPPVector> MLPPKMeans::silhouette_scores() {
|
||||
closest_centroids->get_row_into_mlpp_vector(i, closest_centroids_i_tempv);
|
||||
|
||||
// COMPUTING b[i]
|
||||
real_t b = INT_MAX;
|
||||
real_t b = Math_INF;
|
||||
for (int j = 0; j < mu_size_y; ++j) {
|
||||
_mu->get_row_into_mlpp_vector(j, mu_j_tempv);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user