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:
2026-03-29 00:13:50 +01:00
parent ac71d4b079
commit eaed99e52c
55 changed files with 2237 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
---
name: linspace
kind: function
lang: py
domain: datascience
version: "1.0.0"
purity: pure
signature: "def linspace(start: float, stop: float, num: int) -> list"
description: "Genera una lista de valores equiespaciados entre start y stop (inclusivos)."
tags: [numeric, range, 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
linspace(0, 1, 5)
# [0.0, 0.25, 0.5, 0.75, 1.0]
```
## Notas
Equivalente a numpy.linspace pero sin numpy. Si num=1, retorna [start]. Si num<=0, retorna lista vacia.