neurots.generate.algorithms.abstractgrower

Abstract class for TreeGrower Algorithms.

Classes

AbstractAlgo(input_data, params, ...)

TreeGrower abstract class.

class neurots.generate.algorithms.abstractgrower.AbstractAlgo(input_data, params, start_point, context)

Bases: object

TreeGrower abstract class.

Parameters:
  • input_data (dict) – All the data required for the growth.

  • params (dict) – The parameters required for growth.

  • start_point (list[float]) – The first point of the trunk.

  • context (Any) – An object containing contextual information.

abstract bifurcate(current_section)

When the section bifurcates two new sections need to be created.

This method computes from the current state the data required for the generation of two new sections and returns the corresponding dictionaries.

abstract extend(current_section)

Definition of stop criterion for the growth of the current section.

abstract initialize()

Abstract TreeGrower Algorithm initialization.

Generates the data to be used for the initialization of the first section to be grown.

abstract terminate(current_section)

Terminate the current section.

When the growth of a section is terminated the “term” must be removed from the TMD grower.