Skip to content

Commit

Permalink
changed good r threshold to 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbcode committed Jan 25, 2016
1 parent 46c349c commit cfc4eb6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions R/cal_mss_tc_aggregate_model.r
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

cal_mss_tc_aggregate_model = function(dir){

#dir = "K:/test/mss/wrs2/038029/calibration"
#overwrite=T


#make new directory
outdir = file.path(dir,"aggregate_model")
dir.create(outdir, recursive=T, showWarnings=F)
Expand Down Expand Up @@ -193,7 +197,7 @@ cal_mss_tc_aggregate_model = function(dir){
df$r[i] = r
}
n_goods = 0
thresh = 0.7
thresh = 0.8
while(n_goods < 1){
goods = which(df$r > thresh)
n_goods = length(goods)
Expand All @@ -212,10 +216,6 @@ cal_mss_tc_aggregate_model = function(dir){
return(these[2:length(these)])
}





tcbsamps = list.files(dir,"tcb_cal_samp.csv",recursive=T,full.names=T)
tcgsamps = list.files(dir,"tcg_cal_samp.csv",recursive=T,full.names=T)
tcwsamps = list.files(dir,"tcw_cal_samp.csv",recursive=T,full.names=T)
Expand Down
5 changes: 2 additions & 3 deletions R/cal_oli_tc_aggregate_model.r
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@


cal_oli_tc_aggregate_model = function(dir, overwrite=F){
#dir = "K:/test/oli/wrs2/038029/calibration"
#overwrite=T


#make new directory
outdir = file.path(dir,"aggregate_model")
Expand Down Expand Up @@ -168,7 +167,7 @@ cal_oli_tc_aggregate_model = function(dir, overwrite=F){
df$r[i] = r
}
n_goods = 0
thresh = 0.7
thresh = 0.8
while(n_goods < 1){
goods = which(df$r > thresh)
n_goods = length(goods)
Expand Down

0 comments on commit cfc4eb6

Please sign in to comment.