Package 'nestedpp'

Title: Performance Profiles and Nested Performance Profiles
Description: Library to plot performance profiles (Dolan and More (2002) <doi:10.1007/s101070100263>) and nested performance profiles (Hekmati and Mirhajianmoghadam (2019) <doi:10.19139/soic-2310-5070-679>) for a given data frame.
Authors: Brais Gonzalez-Rodriguez [aut, cre]
Maintainer: Brais Gonzalez-Rodriguez <[email protected]>
License: GPL-3
Version: 0.2.0
Built: 2024-11-13 03:12:49 UTC
Source: https://github.com/cran/nestedpp

Help Index


Generates random data frame

Description

Function that returns a random data frames

Usage

generate_random_example(seed = 1234, nrow = 10, ncol = 5, withNA = TRUE)

Arguments

seed

seed for random generation

nrow

number of rows

ncol

number of columns

withNA

bool to indicate if we want to include some NA values in the data frame

Value

a data frame with random data

Examples

example_data = generate_random_example(seed = 123456, nrow = 15, ncol=6)

geometric mean function

Description

Function to compute the geometric mean

Usage

gmean(data, ...)

Arguments

data

vector with the data

...

further arguments passed to or from other methods

Value

geometric mean value

Examples

gmean(1:10)

Nested performance profile function

Description

Function that returns a ggplot object with the corresponding nested performance profile

Usage

nested_performance_profile(
  data,
  minimize = TRUE,
  logbase = 1,
  legend_title = "",
  best_rule = "winner",
  xlab = expression(tau),
  ylab = expression(rho),
  xmax = 0,
  colors = c(),
  plot = TRUE,
  xgrid = c()
)

Arguments

data

data frame with the data

minimize

true if lower values mean best performance and false otherwise

logbase

base of the logarithm used to represent nested performance profiles

legend_title

title for the legend

best_rule

option to choose the best solver eliminated in each iteration ("winner", "mean", "gmean", "median" or custom function)

xlab

x axis label

ylab

y axis label

xmax

maximum value of xaxis

colors

vector with the colors of each configuration

plot

bool to display the plot or not

xgrid

vector for using it as grid in ratios

Value

ggplot object with the corresponding nested performance profile

Examples

example_data = generate_random_example(seed = 1234)
nested_performance_profile(example_data)

number of Na's

Description

Function to compute the number of Na's

Usage

number_of_na(data, ...)

Arguments

data

vector with the data

...

further arguments passed to or from other methods

Value

number of Na's

Examples

number_of_na(1:10)

Performance profile function

Description

Function that returns a ggplot object with the corresponding performance profile

Usage

performance_profile(
  data,
  minimize = TRUE,
  logbase = 1,
  legend_title = "",
  xlab = expression(tau),
  ylab = expression(rho),
  xmax = 0,
  colors = c(),
  plot = TRUE,
  xgrid = c()
)

Arguments

data

data frame with the data

minimize

true if lower values mean best performance and false otherwise

logbase

base of the logarithm used to represent performance profiles

legend_title

title for the legend

xlab

x axis label

ylab

y axis label

xmax

maximum value of xaxis

colors

vector with the colors of each configuration

plot

bool to display the plot or not

xgrid

vector for using it as grid in ratios

Value

ggplot object with the corresponding performance profile

Examples

example_data = generate_random_example(seed = 1234)
performance_profile(example_data)

Table function

Description

Function to generate a table with different metrics

Usage

performance_table(data, tolatex = FALSE)

Arguments

data

data frame with the data

tolatex

true to print the latex code of the table

Value

the data frame with the metrics

Examples

example_data = generate_random_example(seed = 1234)
table(example_data)

1st quartile function

Description

Function to compute the first quartile

Usage

q1(data, ...)

Arguments

data

vector with the data

...

further arguments passed to or from other methods

Value

1st quartile value

Examples

q1(1:10)

3st quartile function

Description

Function to compute the third quartile

Usage

q3(data, ...)

Arguments

data

vector with the data

...

further arguments passed to or from other methods

Value

3st quartile value

Examples

q3(1:10)