A value space used by search strategies.
Built-in descriptors are normalized once before search. Custom spaces are structs whose module implements this behaviour.
Summary
Functions
Normalizes a built-in descriptor or custom space.
Types
@type random_state() :: :rand.state()
Callbacks
@callback crossover(struct(), term(), term(), random_state()) :: {term(), random_state()}
@callback mutate(struct(), term(), random_state()) :: {term(), random_state()}
@callback sample(struct(), random_state()) :: {term(), random_state()}
Functions
@spec new(term()) :: {:ok, struct()} | {:error, Exception.t()}
Normalizes a built-in descriptor or custom space.