Changeset 1390 for applications/robust
- Timestamp:
- 09/18/11 11:04:27 (13 years ago)
- Location:
- applications/robust
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/robust/main.cpp
r1389 r1390 99 99 if(has_constant) 100 100 { 101 my_rarx = new RARX(ar_components.size()+1,window_size,true, sqrt(2*apriorno),sqrt(2*apriorno),ar_components.size()+4);101 my_rarx = new RARX(ar_components.size()+1,window_size,true,pow(apriorno,2.0),pow(apriorno,2.0),ar_components.size()+4); 102 102 my_arx = NULL; 103 103 } 104 104 else 105 105 { 106 my_rarx = new RARX(ar_components.size(),window_size,false, sqrt(2*apriorno),sqrt(2*apriorno),ar_components.size()+3);106 my_rarx = new RARX(ar_components.size(),window_size,false,pow(apriorno,2.0),pow(apriorno,2.0),ar_components.size()+3); 107 107 my_arx = NULL; 108 108 } … … 274 274 vector<vector<string>> strings; 275 275 276 char* file_string = "C:\\ ar_student_single"; //"C:\\Users\\Hontik\\Desktop\\Bayes\\dataADClosePercDiff"; //276 char* file_string = "C:\\dataADClosePercDiff"; // "C:\\ar_student_single"; // 277 277 278 278 char dfstring[80]; -
applications/robust/robustlib.h
r1389 r1390 2654 2654 2655 2655 double exponent = extended_coords*condition_and_simplex.first; 2656 double sample_prob = 1/ pow(probability_and_sigma.second,(int)conditions.size()-number_of_parameters+3)*exp((-1)/probability_and_sigma.second*exponent);2656 double sample_prob = 1/condition_and_simplex.second->probability/pow(probability_and_sigma.second,(int)conditions.size()-number_of_parameters+3)*exp((-1)/probability_and_sigma.second*exponent); 2657 2657 sample_prob *= probability_and_sigma.first; 2658 2658