Learn R Programming

pguIMP (version 0.0.0.3)

pgu.normalizer: pgu.normalizer

Description

Normalization of data. Part of pguIMP.

Arguments

Format

R6::R6Class object.

Active bindings

normAgentAlphabet

Returns the instance variable normAgentAlphabt.

normAgent

Returns the instance variable normAgent. (character)

setNormAgent

Sets the instance variable normAgent. (character)

features

Returns instance variable features. (character)

normParameter

Returns the instance variable normParameter.

Methods

Public methods

Method new()

Creates and returns a new pgu.normalizer object.

Usage

pgu.normalizer$new(data_df = "tbl_df")

Arguments

data_df

The data to be analyzed. (tibble::tibble)

Returns

A new pgu.normalizer object. (pguIMP::pgu.normalizer)

Method finalize()

Clears the heap and indicates that instance of pgu.normalizer is removed from heap.

Usage

pgu.normalizer$finalize()

Method print()

Prints instance variables of a pgu.normalizer object.

Usage

pgu.normalizer$print()

Returns

string

Method detectNormParameter()

Resets instance variable normParameter

Usage

pgu.normalizer$detectNormParameter(data_df = "tbl_df")

Arguments

data_df

Dataframe to be analyzed. (tibble::tibble)

Method scale_data()

Scales a tibble using the method defined by the instance variable normAgent

Usage

pgu.normalizer$scale_data(data_df = "tbl_df")

Arguments

data_df

Dataframe to be scaled (tible::tibble)

Returns

A normalized version of the dataframe. (tibble::tibble)

Method scale_minMax()

Scales a tibble using min-max normalization

Usage

pgu.normalizer$scale_minMax(data_df = "tbl_df")

Arguments

data_df

Dataframe to be scaled (tibble::tibble)

Returns

A min-max normalized version of the dataframe

Method scale_minMax_numeric()

Scales a numeric object using min-max normalization

Usage

pgu.normalizer$scale_minMax_numeric(values = "numeric", feature = "character")

Arguments

values

Values to be scaled. Either a number or a vector (numeric)

feature

Character to idtentify the proper normalization parameters. (character)

Returns

A min-max normalized version of the numeric object

Method scale_mean()

Scales a tibble using mean normalization

Usage

pgu.normalizer$scale_mean(data_df = "tbl_df")

Arguments

data_df

Dataframe to be scaled. (tibble::tibble)

Returns

A mean normalized version of the dataframe

Method scale_mean_numeric()

Scales a numeric object using mean normalization

Usage

pgu.normalizer$scale_mean_numeric(values = "numeric", feature = character)

Arguments

values

Values to be scaled. Either a number or a vector (numeric)

feature

Character to idtentify the proper normalization parameters. (character)

Returns

A mean normalized version of the numeric object

Method scale_zScore()

Scales a tibble using z-score normalization

Usage

pgu.normalizer$scale_zScore(data_df = "tbl_df")

Arguments

data_df

Dataframe to be scaled (tibble::tibble)

Returns

A z-score normalized version of the dataframe

Method scale_zScore_numeric()

Scales a numeric object using z-score normalization

Usage

pgu.normalizer$scale_zScore_numeric(values = "numeric", feature = character)

Arguments

values

Values to be scaled. Either a number or a vector (numeric)

feature

Character to idtentify the proper normalization parameters. (character)

Returns

A z-score normalized version of the numeric object

Method rescale_data()

Rescales a tibble using the method defined by the instance variable normAgent

Usage

pgu.normalizer$rescale_data(data_df = "tbl_df")

Arguments

data_df

Normalized dataframe to be rescaled (tible::tibble)

Returns

A rescaled version of the normalized dataframe. (tibble::tibble)

Method rescale_minMax()

Rescales a tibble using min-max normalization

Usage

pgu.normalizer$rescale_minMax(data_df = "tbl_df")

Arguments

data_df

Normalized dataframe to be rescaled (tibble::tibble)

Returns

A rescaled version of a min-max normalized dataframe

Method rescale_minMax_numeric()

Rescales a numeric object using min-max normalization

Usage

pgu.normalizer$rescale_minMax_numeric(values = "numeric", feature = character)

Arguments

values

Normalized values to be rescaled. Either a number or a vector (numeric)

feature

Character to idtentify the proper normalization parameters. (character)

Returns

Rescaled version of min-max normalized numeric object

Method rescale_mean()

Rescales a tibble using mean normalization

Usage

pgu.normalizer$rescale_mean(data_df = "tbl_df")

Arguments

data_df

Normalized dataframe to be rescaled (tibble::tibble)

Returns

A rescaled version of a mean normalized dataframe

Method rescale_mean_numeric()

Rescales a numeric object using mean normalization

Usage

pgu.normalizer$rescale_mean_numeric(values = "numeric", feature = character)

Arguments

values

Normalized values to be rescaled. Either a number or a vector (numeric)

feature

Character to idtentify the proper normalization parameters. (character)

Returns

Rescaled version of mean normalized numeric object

Method rescale_zScore()

Rescales a tibble using z-score normalization

Usage

pgu.normalizer$rescale_zScore(data_df = "tbl_df")

Arguments

data_df

Normalized dataframe to be rescaled (tibble::tibble)

Returns

A rescaled version of a z-score normalized dataframe

Method rescale_zScore_numeric()

Rescales a numeric object using z-score normalization

Usage

pgu.normalizer$rescale_zScore_numeric(values = "numeric", feature = character)

Arguments

values

Normalized values to be rescaled. Either a number or a vector (numeric)

feature

Character to idtentify the proper normalization parameters. (character)

Returns

Rescaled version of z-score normalized numeric object

Method featureBarPlot()

Displays the distribution of an attribute values as histogram.

Usage

pgu.normalizer$featureBarPlot(data_df = "tbl_df", feature = "character")

Arguments

data_df

dataframe to be analyzed. (tibble::tibble)

feature

attribute to be shown. (character)

Returns

A histogram. (ggplot2::ggplot)

Method featureBoxPlotWithSubset()

Displays the distribution of an attribute's values as box plot.

Usage

pgu.normalizer$featureBoxPlotWithSubset(
  data_df = "tbl_df",
  feature = "character"
)

Arguments

data_df

dataframe to be analyzed. (tibble::tibble)

feature

attribute to be shown. (character)

Returns

A box plot. (ggplot2::ggplot)

Method featurePlot()

Displays the distribution of an attribute's values as a composition of a box plot and a histogram.

Usage

pgu.normalizer$featurePlot(data_df = "tbl_df", feature = "character")

Arguments

data_df

dataframe to be analyzed. (tibble::tibble)

feature

attribute to be shown. (character)

Returns

A composite plot. (ggplot2::ggplot)

Method clone()

The objects of this class are cloneable with this method.

Usage

pgu.normalizer$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Details

Performs a data normalization in order to achieve a standardized version of the dataframe. This object is used by the shiny based gui and is not for use in individual R-scripts!