cfdf515228
- .claude/CLAUDE.md - .claude/commands/subagentes.md - .claude/rules/INDEX.md - .mcp.json - bash/functions/cybersecurity/analyze_dns.md - bash/functions/cybersecurity/audit_http_headers.md - bash/functions/cybersecurity/audit_ssh_config.md - bash/functions/cybersecurity/check_firewall.md - bash/functions/cybersecurity/detect_suspicious_users.md - bash/functions/cybersecurity/encrypt_file.md - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
37 lines
869 B
Markdown
37 lines
869 B
Markdown
---
|
|
name: standardize
|
|
kind: function
|
|
lang: py
|
|
domain: datascience
|
|
version: "1.0.0"
|
|
purity: pure
|
|
signature: "def standardize(data: list) -> list"
|
|
description: "Estandarizacion Z-score: transforma los datos a media=0 y desviacion=1."
|
|
tags: [statistics, normalization, python, pendiente-usar]
|
|
uses_functions: []
|
|
uses_types: []
|
|
returns: []
|
|
returns_optional: false
|
|
error_type: ""
|
|
imports: [math]
|
|
params:
|
|
- name: data
|
|
desc: "lista de valores numericos a estandarizar"
|
|
output: "lista de misma longitud con datos transformados a media=0 y desviacion estandar=1 (z-scores)"
|
|
tested: false
|
|
tests: []
|
|
test_file_path: ""
|
|
file_path: "python/functions/datascience/datascience.py"
|
|
---
|
|
|
|
## Ejemplo
|
|
|
|
```python
|
|
standardize([10, 20, 30])
|
|
# [-1.2247..., 0.0, 1.2247...]
|
|
```
|
|
|
|
## Notas
|
|
|
|
Si la desviacion estandar es cero, retorna lista de ceros. Usa desviacion poblacional (N, no N-1).
|