Provides service for creating 2-D animation using BANG clustering results. More...
Public Member Functions | |
def | __init__ (self, directory, clusters) |
Creates BANG animator instance. More... | |
def | animate (self, animation_velocity=75, movie_fps=25, movie_filename=None) |
Animates clustering process that is performed by BANG algorithm. More... | |
Provides service for creating 2-D animation using BANG clustering results.
The animator does not support visualization of clustering process where non 2-dimensional was used.
Code example of animation of BANG clustering process:
def pyclustering.cluster.bang.bang_animator.__init__ | ( | self, | |
directory, | |||
clusters | |||
) |
Creates BANG animator instance.
[in] | directory | (bang_directory): BANG directory that was formed during BANG clustering process. |
[in] | clusters | (list): Allocated clusters during BANG clustering process. |
def pyclustering.cluster.bang.bang_animator.animate | ( | self, | |
animation_velocity = 75 , |
|||
movie_fps = 25 , |
|||
movie_filename = None |
|||
) |
Animates clustering process that is performed by BANG algorithm.
[in] | animation_velocity | (uint): Interval between frames in milliseconds (for run-time animation only). |
[in] | movie_fps | (uint): Defines frames per second (for rendering movie only). |
[in] | movie_filename | (string): If it is specified then animation will be stored to file that is specified in this parameter. |