defineOrEstimateDistribution: defineOrEstimateDistribution

View source: R/defineOrEstimateDistribution.R

defineOrEstimateDistributionR Documentation

defineOrEstimateDistribution

Description

The function estimates the distribution of values within a features that belong to a specific class, i.e., the conditional probability of the likelihood

Usage

defineOrEstimateDistribution(Feature,ClassInd,Gaussian=FALSE,ParetoRadius=NULL,
InternalPlotIt=FALSE,SD_Threshold=0.001,...)

Arguments

Feature

[1:n] Numeric Vector

ClassInd

Integer Vector with class indices

Gaussian

(Optional: Default=TRUE). Assume gaussian distribution.

ParetoRadius

Optional [1:d] numerical vector for pareto radii computed priorly, see ParetoRadius

InternalPlotIt

Optional: Default=FALSE). Create plot if set to TRUE.

SD_Threshold

Optional: Default=0.001.

...

Robust: Optional: Default=FALSE, TRUE: robust estimation of mean and std in case of Gaussian=TRUE

Type: (Optional: Default=2, 1=original PDE, 2= improved PDE

na.rm: (Optional: Default=TRUE). Remove na.

Value

Kernels

[1:m] Numeric vector with kernels (x-values) of a 1D pdf.

PDF

[1:m] Numeric vector with the distribution values of a 1D pdf.

Theta

Numeric vector with parameters of gaussian of mean and standard deviation - NULL if no gaussian used.

Author(s)

Michael Thrun

Examples

if(requireNamespace("FCPS")){
data(Hepta)
Data=Hepta$Data
Cls=Hepta$Cls
Priors=getPriors(Cls)
}

PDEnaiveBayes documentation built on Nov. 17, 2025, 5:07 p.m.