Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
A few fixes to v3a
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Thorson committed Jan 14, 2015
1 parent ed82492 commit 92e3b97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/Make_Map.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ function( VesselConfig, TmbData, FieldConfig, CovConfig, CovConception, ObsModel
Map[["gamma2_j"]] = factor(NA)
}
if( sum(Q_Config)==0 ){
Map[["lambda1_j"]] = factor(NA)
Map[["lambda2_j"]] = factor(NA)
Map[["lambda1_k"]] = factor(NA)
Map[["lambda2_k"]] = factor(NA)
}
if(ObsModel%in%c(0,1,2)){
Map[["logSigmaM"]] = factor( c(1,NA,NA,NA) )
Expand Down
1 change: 1 addition & 0 deletions examples/example_for_NWFSC_shelf-slope_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ DateFile = paste(getwd(),'/',Sys.Date(),'/',sep='')
Data_Geostat = cbind( Data_Geostat, Data_Extrap[NN_Tmp$nn.idx,c('Depth_km','Depth_km2','E_km','N_km')] )

# Calculate k-means centroids (but only once for all species)
setwd( DateFile )
Kmeans = Calc_Kmeans(n_x=n_x, Kmeans_Config=Kmeans_Config, Data_Geostat=Data_Geostat, Data_Extrap=Data_Extrap)
loc_x = Kmeans$centers

Expand Down

0 comments on commit 92e3b97

Please sign in to comment.