generate_data_2: generate_data_2 take in two sets of problem samples from...

View source: R/visualize.R

generate_data_2R Documentation

generate_data_2 take in two sets of problem samples from files name1 and name2, and return a combined dataframe containing combined samples, with samples in name2 shifted and scaled

Description

generate_data_2 take in two sets of problem samples from files name1 and name2, and return a combined dataframe containing combined samples, with samples in name2 shifted and scaled

Usage

generate_data_2(
  root_folder = "C:\\R_Code\\Landscape Analysis\\rezultati\\samples",
  name1,
  name2,
  dim,
  step,
  nfun,
  scale_x_factor = 10000,
  scale_y_factor = 10000,
  shift_x_factor = 10000,
  shift_y_factor = 10000,
  normalize_Y = FALSE,
  gecco = FALSE,
  gecco_cec = FALSE,
  rotate = FALSE
)

Arguments

root_folder

the path of the root folder containing all of the sample files

name1

filename of the first problem sample file, without the .mat extension

name2

filename of the second problem sample file, without the .mat extension

dim

the dimension of the data

step

number of samples for each individual problem

nfun

total number of problems

scale_x_factor

how much to scale the x1,...,xn part of the problem

scale_y_factor

how much to scale the y part of the problem

shift_x_factor

how much to shift the x1,...,xn part of the problem

shift_y_factor

how much to shift the y part of the problem

normalize_Y

should y valus be normalized

gecco

do the files contain gecco problems (FALSE for cec problems)

gecco_cec

does one of the files contain gecco problems, and the other CEC problems (FALSE if both files contain the same benchmark)

rotate

should the problems also be rotated (not used in the paper, as rotation wasn't considered)

Value

a combined dataframe containing samples and results from name1 and name2, with the samples and results in name2 shifted and scaled


UrbanSkv/ela-visualization documentation built on May 20, 2022, 12:09 a.m.