Learn R Programming

aclhs (version 1.0.1)

score_samples: Computes a score from three objective functions.

Description

Computes a score from the sum of three objective functions multiplied by their respective weights. The score is used to determine the best set of indices subsampled by the acLHS algorithm, where lower is better.

Usage

score_samples(
  var_samples,
  df,
  num_samples,
  quantile_ind,
  corrs,
  min_val,
  vario_dep,
  vario_params,
  weights
)

Value

Returns the summed score of the weighted objective functions

Arguments

var_samples

Subsampled indices to test

df

A dataframe with three columns of data

num_samples

The number of subsamples

quantile_ind

The quantile of the independent variable in df

corrs

A vector of three correlations of the two variables in df

min_val

The minimum time or distance between two points in df

vario_dep

The computed Variogram of the data

vario_params

The parameters to set for computing a Variogram

weights

A vector of three weights for each objective function