-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #999 from fhswf/oa/streams/ca
OA: Cluster analysis - updates, corrections, improvements
- Loading branch information
Showing
12 changed files
with
240 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from mlpro.bf.math.geometry.point import Point, cprop_point, cprop_point1, cprop_point2 | ||
from mlpro.bf.math.geometry.hypercuboid import Hypercuboid, cprop_hypercuboid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
## ------------------------------------------------------------------------------------------------- | ||
## -- Project : MLPro - The integrative middleware framework for standardized machine learning | ||
## -- Package : mlpro.bf.math.geometry | ||
## -- Module : hypercuboid.py | ||
## ------------------------------------------------------------------------------------------------- | ||
## -- History : | ||
## -- yyyy-mm-dd Ver. Auth. Description | ||
## -- 2024-05-29 0.0.0 DA Creation | ||
## ------------------------------------------------------------------------------------------------- | ||
|
||
""" | ||
Ver. 0.0.0 (2024-05-29) | ||
This module provides classes for hypercuboids. | ||
""" | ||
|
||
|
||
from mlpro.bf.plot import * | ||
from mlpro.bf.math.properties import * | ||
from mlpro.bf.math.normalizers import Normalizer | ||
from mlpro.bf.plot import PlotSettings | ||
|
||
|
||
|
||
|
||
## ------------------------------------------------------------------------------------------------- | ||
## ------------------------------------------------------------------------------------------------- | ||
class Hypercuboid (Property): | ||
""" | ||
Implementation of a point in a hyper space. Current position, velocity and acceleration are managed. | ||
Attributes | ||
---------- | ||
values | ||
Current boundaries of the hypercuboid as two-dimensional array-like data object. For a | ||
n-dimensional hypercuboid value[d][0] determines the lower boundary in dimension d while | ||
value[d][1] specifies the upper boundary. | ||
""" | ||
|
||
C_PLOT_ACTIVE = True | ||
C_PLOT_STANDALONE = False | ||
C_PLOT_VALID_VIEWS = [PlotSettings.C_VIEW_2D, PlotSettings.C_VIEW_3D, PlotSettings.C_VIEW_ND] | ||
C_PLOT_DEFAULT_VIEW = PlotSettings.C_VIEW_ND | ||
|
||
## ------------------------------------------------------------------------------------------------- | ||
# def init_plot(self, p_figure: Figure = None, p_plot_settings: PlotSettings = None, **p_kwargs): | ||
# super().init_plot(p_figure, p_plot_settings, **p_kwargs) | ||
|
||
|
||
## ------------------------------------------------------------------------------------------------- | ||
def _update_plot_2d(self, p_settings: PlotSettings, **p_kwargs): | ||
pass | ||
|
||
## ------------------------------------------------------------------------------------------------- | ||
def _update_plot_3d(self, p_settings: PlotSettings, **p_kwargs): | ||
pass | ||
|
||
|
||
## ------------------------------------------------------------------------------------------------- | ||
def _update_plot_nd(self, p_settings: PlotSettings, **p_kwargs): | ||
pass | ||
|
||
|
||
## ------------------------------------------------------------------------------------------------- | ||
def _remove_plot_2d(self): | ||
pass | ||
|
||
|
||
## ------------------------------------------------------------------------------------------------- | ||
def _remove_plot_3d(self): | ||
pass | ||
|
||
|
||
## ------------------------------------------------------------------------------------------------- | ||
def _remove_plot_nd(self): | ||
pass | ||
|
||
|
||
## ------------------------------------------------------------------------------------------------- | ||
def renormalize(self, p_normalizer: Normalizer): | ||
raise NotImplementedError | ||
|
||
|
||
|
||
|
||
|
||
cprop_hypercuboid : PropertyDefinition = ( 'hypercuboid', 0, False, Hypercuboid ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.