Utility Functions

utilityFunctions.R

disableActionButton(id, session)

Sets the property named disabled to FALSE in the javascript form

Parameters:
  • id (character) – namespace of the module

  • session (object) – environment that can be used to access information and functionality related to the session

enableActionButton(id, session)

Sets the property named disabled to TRUE in the javascript form

Parameters:
  • id (character) – namespace of the module

  • session (object) – environment that can be used to access information and functionality related to the session

check.header(DOE, datapath, separator, decimal, nY=0)

Extracts column names from file and checks if they are unique and consistent with the DOE definition

Parameters:
  • DOE (object) – stores the point values and the DOE information (e.g. bounds…)

  • datapath (character) – path to data file

  • separator (character) – delimiter used to separate values in the file

  • decimal (character) – decimal separator

  • nY (numeric) – number of outputs (default=0)

check.new.data(nX, Xinfos, newData, nY=0)

Checks if the data is consistent with the DOE definiton

Parameters:
  • nX (add_type) – add_description

  • Xinfos (object) – input variable information

  • newData (data.frame) – data

  • nY (numeric) – number of outputs (default=0)

get.new.data.from.file(DOE, datapath, separator, decimal, nY=0)

Reads the data from the spectified file

Parameters:
  • DOE (object) – stores the point values and the DOE information (e.g. bounds…)

  • datapath (character) – path to data file

  • separator (character) – delimiter used to separate values in the file

  • decimal (character) – decimal separator

  • nY (numeric) – number of outputs (default=0)

dchi2LHS(x, n, min, max)

Computes Chi2 distance to LHS

Parameters:
  • x (data.frame) – data

  • n (numeric) – size of the sample

  • min (numeric) – min value

  • max (numeric) – max value

discrepancyL2centered(X)

Computes discrepency criterion

Parameters:

X (data.frame) – data

maxprocrit(x)

Computes MaxPro criterion

Parameters:

X (data.frame) – data

generateUQ(UQparams, n, DOE)

Generates uncertainty quntification sample

Parameters:
  • UQparams (list) – Uncertainty Quantification parameters

  • n (numeric) – sample size

  • DOE (object) – stores the point values and the DOE information (e.g. bounds…)

generateXtest(Xbounds, n, DOE)

Generates a Sobol sample

Parameters:
  • Xbounds (list) – lower and upper bound

  • n (numeric) – sample size

  • DOE (object) – stores the point values and the DOE information (e.g. bounds…)

rbf_hsic(x, param)

Computes the Hilbert-Schmidt Independence Criterion

Parameters:
  • x (data.frame) – data

  • param (numeric) – normalization parameter (e.g. median)

MMD(X, Y, kernel, param, ...)

Computes Maximum Mean Discrepency

Parameters:
  • X (data.frame) – input variables

  • Y (data.frame) – output variables

  • kernel (character) – kernel method to use

  • param (numeric) – normalization parameter (e.g. median)

  • .... (-) – ellipsis

paretoFilterFast2obj(d)

Computes fast pareto filtering with two objectives

Parameters:

d (data.frame) – data