Releases: blasif/cocons
Releases · blasif/cocons
0.1.4
cocons 0.1.4
- Documentation polished
Enhances
GetNeg2loglikelihood
,GetNeg2loglikelihoodTaper
, andGetNeg2loglikelihoodTaperProfile
now much faster (~35% faster)cocoOptim
:- new
REML
estimation for densecoco
type.
- new
- now cpp functions
cov_rns
andcov_rns_taper
include as special cases the well-known shapes when nu = 0.5, 1.5, and 2.5, yielding computational speed-ups. - now
getCIs
display names of covariate instead of index of Design Matrix. - now
.cocons.check.info
also checks for smoothness model and smooth.limits.
Changes
coco
now acceptsdata.frame
for locs argument, which is then converted to matrix.getTrend
now is calledgetSpatMean
.cocoPredict
renamed output spatial mean vectors:trend
is now calledsystematic
, whilemean
is calledstochastic
.cocoOptim
:- reordering of arguments.
mle
estimation method now calledml
.pmle
estimation method now calledpml
.
getHessian
:mle
toml
andpmle
topml
.
getCIs
nowalpha
argument reflects confidence level instead of 1-confidence level.
Fixes
- fix a bug for plotOptimInfo when handling
pml
orreml
objects.
0.1.3
cocons 0.1.3
- Vignette updates, watermark removed
- Documentation polished
- New
holes_bm
dataset with independent realizations and spatial trend
Enhances
- added a NEWS.md file with version updates / modifications / enhances / etc
- automatized
delta
for methodplot
for coco class. - Better visualization for
plot(cocoOptim object, type = "ellipse")
coco
:- now it is not necessary to provide all models for each source of nonstationarity. Those not specified will be set to those referenced
with a stationary 0-mean model (i.e. tilt = 0 , aniso = 0, nugget = -Inf (because of log-parameterization)). If 'smooth' is not specified, then it is set to 0.5.
- now it is not necessary to provide all models for each source of nonstationarity. Those not specified will be set to those referenced
cocoOptim
:- "auto" option for
ncores
argument forcocoOptim
, providing a convenient number of threads based on the number of parameters to estimate, available threads, and settings of the LBFGSB routine - "safe" argument, which prevents crashes due to ill-posed covariance matrices (Choelsky factorization error)
.cocons.check.convergence
now checks and reports at which iteration ill-posed covariance matrices have been found during the optimization.- now "pmle" works with multiple independent realizations for coco types
dense
andsparse
- safer parallel handling
- "auto" option for
getHessian
more memory efficientcocoSim
:- if provided a fitted coco object, then
pars
argument can beNULL
(default), andcoco.object@output$par
is used instead (and alsotype
is set todiff
). - more memory efficient
- if provided a fitted coco object, then
- safer parallel handling for
getHessian
- polishing of neg2loglikelihood functions, leading to more efficient code
- new and more polished internal functions to assess the validity of arguments (
stopifnot()
instead ofif() stop()
) getCondNumber
optimized- small improvement over cpp functions
Changes
- switched
getPen
as an internal function - method
plot
forcoco
objects shows rotation angle of the kernel w.r.t x-axis GetSpateffects
now provides angle w.r.t to x-axis- method "summary" for
coco
objecets (former "print" method) - more proper naming of objects inside functions
- renaming of "cat.vars" to "skip.scale" + associated checks and optimization
getCondNumber
removed, which can be replaced withkappa
function from base R (i.e.kappa(getCovMatrix(coco.object),exact = TRUE)
)
cocons 0.1.2
Several improves from 0.1.1:
- Improve overall help files
- Add examples for coco, cocoOptim, cocoPredict, and cocoSim
- update Vignette
- some bug fixes and overall code polishing
Some important changes in R files:
- "smooth_limits" of "info" from the coco function is now called "smooth.limits" to match the style of other arguments (no backward compatibility)
- new names for C++ sparse covariance functions
- add warnings of non-convergence of the LBFGSB for cocoOptim
- bug fixes for coco "methods"
- less redundant code