depth_mesh#
- depth_mesh(model: DepthEucl, notion: str = 'halfspace', freq: List[int] = [100, 100], xlim: List[int] | None = None, ylim: List[int] | None = None, mah_estimate: str = 'moment', mah_parMCD: float = 0.75, beta: int = 2, distance: str = 'Lp', Lp_p: int = 2, exact: bool = True, method: str = 'recursive', k: float = 0.05, solver: str = 'neldermead', NRandom: int = 1000, n_refinements: int = 10, sphcap_shrink: float = 0.5, alpha_Dirichlet: float = 1.25, cooling_factor: float = 0.95, cap_size: float | int = 1, start: str = 'mean', space: str = 'sphere', line_solver: str = 'goldensection', bound_gc: bool = True) tuple[ndarray, ndarray, ndarray] [source]
Computes the depth mesh
- Parameters
- notion: str, default=”halfspace”
Chosen notion for depth computation. The mesh will be computed using this notion to map the 2D space
- freq: List[int], defaul=[100,100]
Amount of points to map depth in both dimensions.
- xlim: List[int], default=None
Limits for x value computation. If None, value is determined based on dataset values.
- ylim: List[int], default=None
Limits for y value computation. If None, value is determined based on dataset values.
- Results
- xs: np.ndarray
x coordinate for plotting
- ys: np.ndarray
y coordinate for plotting
- depth_grid: np.ndarray
depth values for the grid