---
name: detect_outliers
kind: function
lang: go
domain: datascience
version: "1.0.0"
purity: pure
signature: "func DetectOutliers(data []float64, threshold float64) []bool"
description: "Detecta outliers en un slice de float64 usando z-score. Devuelve true para valores cuyo |z-score| supera el umbral."
tags: [datascience, statistics, outlier, anomaly, pendiente-usar, validator]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: ""
imports: ["math"]
params:
  - name: data
    desc: "slice de valores numéricos a analizar"
  - name: threshold
    desc: "umbral de z-score para considerar un valor outlier (ej: 2.0 para 2 desviaciones estándar)"
output: "slice de booleanos del mismo tamaño que data, true si el elemento es outlier"
tested: false
tests: []
test_file_path: ""
file_path: "functions/datascience/detect_outliers.go"
---
