pysted.temporal.Fiber

class pysted.temporal.Fiber(coords=None, random_params={}, parent=None, seed=None)

A Fiber is a set of nodes that are connected but not closed

Fiber.add_node(node[, pos])

Methods that implements adding a node to the current nodes.

Fiber.apply_force([mean, std, field])

This method allows to apply a force on each nodes

Fiber.apply_jitter([mean, std])

This method allows to jitter the position of each nodes.

Fiber.generate_random([num_points, angle, ...])

Generates a random set of points.

Fiber.grow([prob, angle, scale])

This methods implements the growth of a Fiber

Fiber.reset_force()

Reset the current force that is being applied on all nodes

Fiber.reset_speed()

Reset the current speed that is being applied on all nodes

Fiber.return_shape([shape])

Return Fiber indices.

Fiber.spawn([num])

Method that implements spawn of synapses

Fiber.update()

Updates the position of each node based on the current forces and speeds