feat: funciones Python para core, cybersecurity, datascience y finance
Agrega funciones Python reutilizables organizadas por dominio: - core: composicion funcional (pipe, compose, map, filter, reduce, etc.) - cybersecurity: analisis de amenazas y puertos - datascience: estadisticas y deteccion de outliers - finance: indicadores tecnicos y analisis financiero
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
---
|
||||
name: min_max_scale
|
||||
kind: function
|
||||
lang: py
|
||||
domain: datascience
|
||||
version: "1.0.0"
|
||||
purity: pure
|
||||
signature: "def min_max_scale(data: list) -> list"
|
||||
description: "Escala los valores al rango [0, 1] usando min-max normalization."
|
||||
tags: [normalization, scaling, python]
|
||||
uses_functions: []
|
||||
uses_types: []
|
||||
returns: []
|
||||
returns_optional: false
|
||||
error_type: ""
|
||||
imports: []
|
||||
tested: false
|
||||
tests: []
|
||||
test_file_path: ""
|
||||
file_path: "python/functions/datascience/datascience.py"
|
||||
---
|
||||
|
||||
## Ejemplo
|
||||
|
||||
```python
|
||||
min_max_scale([2, 4, 6, 8, 10])
|
||||
# [0.0, 0.25, 0.5, 0.75, 1.0]
|
||||
```
|
||||
|
||||
## Notas
|
||||
|
||||
Si todos los valores son iguales, retorna lista de ceros. No requiere imports externos.
|
||||
Reference in New Issue
Block a user