aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stratified_sampling.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/stratified_sampling.cpp b/stratified_sampling.cpp
index af716bc..8f408cc 100644
--- a/stratified_sampling.cpp
+++ b/stratified_sampling.cpp
@@ -40,7 +40,7 @@ std::pair<double, double> mean_var( std::vector<double> r){
}
//actualisation du nombre de tirages à faire par strates
std::vector<int> update_sampling (std::vector<double> p,
-std::vector<double> sigma, int n) {
+ std::vector<double> sigma, int Nk) {
int I = p.size();
std::vector<int> M(I, 1); // notre vecteur final à retourner
std::vector<double> m(I, 0); //le vecteur des m_i idéals
@@ -76,7 +76,7 @@ int main()
std::vector<double> q;
q = quantile_norm(10, 1);
-
+
std::pair<double, double> p;
std::pair<double, double> mv;
//number of classes