freneticlib.representations.abstract_representation

Module Contents

Classes

RoadRepresentation

Helper class that provides a standard way to create an ABC using

class freneticlib.representations.abstract_representation.RoadRepresentation(length: int, variation: int = 0)[source]

Bases: abc.ABC

Helper class that provides a standard way to create an ABC using inheritance.

get_length() int[source]
generate() list[source]

Generate a test of length self.length using the function get_value(previous points). :returns: (np.array) a list of delta values.

abstract get_value(previous: list = None)[source]
abstract to_cartesian(test)[source]
is_valid(test) bool[source]
fix(test)[source]