generate_perception_matrix: Generate perception matrix

View source: R/perception_matrix.R

generate_perception_matrixR Documentation

Generate perception matrix

Description

Generate perception matrix

Usage

generate_perception_matrix(
  source_num_sine_waves,
  source_frequency,
  num_waves,
  even_spacing = TRUE,
  seed
)

Arguments

source_num_sine_waves

an integer value, the number of sine waves that will be summed to generate the waves of the matrix (this is used as input to the apply_random_sine_wave() function)

source_frequency

a numeric value, controls maximum frequency of waves of the matrix (this is used as input to apply_random_sine_wave() function)

num_waves

an integer value, the approximate number of waves that make up the matrix in each directional axis

even_spacing

a boolean value, set to TRUE to make the waves evenly spaced

seed

a numeric value, the seed to initialize psuedo-randomness

Value

a random work of art as a ggplot object


christopher-rowe/StochasticArt documentation built on April 15, 2023, 3:59 a.m.