resemble2.2.5 package

Memory-Based Learning in Spectral Chemometrics

check_pc_arguments

checks the pc_selection argument

cor_diss

Correlation and moving correlation dissimilarity measurements (cor_dis...

diss_to_neighbors

From dissimilarity matrix to neighbors

dissimilarity

Dissimilarity computation between matrices

euclid_to_mahal

A function for transforming a matrix from its Euclidean space to its M...

eval_multi_pc_diss

evaluation of multiple distances obtained with multiple PCs

f_diss

Euclidean, Mahalanobis and cosine dissimilarity measurements

fast_diss_vector

A fast algorithm of (squared) Euclidean cross-distance for vectors wri...

fast_diss

A fast distance algorithm for two matrices written in C++

fit_and_predict

Local multivariate regression

format_xr_xu_indices

format internal messages

gaussian_pr_cv

Cross validation for Gaussian process regression

gaussian_process_cv

Internal Cpp function for performing leave-group-out cross validations...

gaussian_process

Gaussian process regression with linear kernel (gaussian_process)

get_col_largest_sd

Function for identifiying the column in a matrix with the largest stan...

get_col_sds

Standard deviation of columns

get_column_means

Function for computing the mean of each column in a matrix

get_column_sds

Function for computing the standard deviation of each column in a matr...

get_column_sums

Function for computing sum of each column in a matrix

get_eval_categorical

get the evaluation results for categorical data

get_eval_continuous

get the evaluation results for continuous data

get_ith_local_neighbors

A function to obtain the local neighbors based on dissimilarity matric...

get_local_pls_weights

Internal Cpp function for computing the weights of the PLS components ...

get_neighbor_info

A function to get the neighbor information

get_predictions

Extract predictions from an object of class mbl

get_sample_strata

A function to assign values to sample distribution strata

get_samples_from_strata

A function for stratified calibration/validation sampling

get_wapls_weights

Internal function for computing the weights of the PLS components nece...

get_weights

Computes the weights for pls regressions

ith_mbl_neighbor

An iterator for local prediction data in mbl

ith_subsets_ortho_diss

iterator for nearest neighbor subsets

local_fit

Local fit functions

local_ortho_diss

local ortho dissimilarity matrices initialized by a global dissimilari...

mbl_control

A function that controls some few aspects of the memory-based learning...

mbl

A function for memory-based learning (mbl)

moving_cor_diss

Moving/rolling correlation distance of two matrices

opls_cv_cpp

Internal Cpp function for performing leave-group-out cross-validations...

opls_for_projection

orthogonal scores algorithn of partial leat squares (opls) projection

opls_get_all

orthogonal scores algorithn of partial leat squares (opls_get_all)

opls_get_basics

fast orthogonal scores algorithn of partial leat squares (opls)

opls_gs

orthogonal scores algorithm of partial leat squares (opls)

opls

orthogonal scores algorithn of partial leat squares (opls)

optim_sample_strata

A function to construct an optimal strata for the samples, based on th...

ortho_diss

A function for computing dissimilarity matrices from orthogonal projec...

ortho_projection

Orthogonal projections using principal component analysis and partial ...

overall_var

Function for computing the overall variance of a matrix

pca_nipals

Principal components based on the non-linear iterative partial least s...

pkg_info

Get the package version info

plot.mbl

Plot method for an object of class mbl

plot.ortho_projection

Plot method for an object of class ortho_projection

pls_cv

Cross validation for PLS regression

predict_gaussian_process

Prediction function for the gaussian_process function (Gaussian proc...

predict_opls

Prediction function for the opls and fopls functions

print.local_fit

Print method for an object of class local_fit

print.local_ortho_diss

Print method for an object of class ortho_diss

print.mbl

Print method for an object of class mbl

print.ortho_projection

Print method for an object of class ortho_projection

project_opls

Projection function for the opls function

reconstruction_error

Projection to pls and then re-construction

resemble-package

Overview of the functions in the resemble package

sample_stratified

A function to create calibration and validation sample sets for leave-...

search_neighbors

A function for searching in a given reference set the neighbors of ano...

sid

A function for computing the spectral information divergence between s...

sim_eval

A function for evaluating dissimilarity matrices (sim_eval)

sqrt_sm

Square root of (square) symmetric matrices

sub-.local_ortho_diss

Print method for an object of class local_ortho_diss

which_min_vector

A function to compute indices of minimum values of a distance vector

which_min

A function to compute row-wise index of minimum values of a square dis...

Functions for dissimilarity analysis and memory-based learning (MBL, a.k.a local modeling) in complex spectral data sets. Most of these functions are based on the methods presented in Ramirez-Lopez et al. (2013) <doi:10.1016/j.geoderma.2012.12.014>.

  • Maintainer: Leonardo Ramirez-Lopez
  • License: MIT + file LICENSE
  • Last published: 2025-10-17