generateFunctionNodes: generateFunctionNodes

Description Usage Arguments Value

View source: R/population.R

Description

Generates a data frame containing a row for each function node required. The number of rows is equal to the product of the nrows and ncols parameters. Each row is given a unique ID (chromoID) which is unique within the entire chromosome. The value field of each row is set as NA initially. The funcID field is the ID a random function chosen from the functionSet. The input field is a vector of valid nodes to use as arguments to the function field.

Usage

1
generateFunctionNodes(startID, nrows, ncols, levelsBack, functionSet)

Arguments

startID

the starting chromoID

nrows

the number of rows required in the chromosome

ncols

the number of columns required in the chromosome

levelsBack

the number of columns back that each column can access

functionSet

the functions to choose from

Value

a data frame containing the function nodes


porteous54/caRtesian documentation built on May 30, 2019, 11:43 a.m.