Skip to content

Commit

Permalink
docs: entropy
Browse files Browse the repository at this point in the history
menambahkan dokumentasi entropy
  • Loading branch information
dherlyar committed Jan 24, 2024
1 parent b2ddd18 commit ce46eec
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
File renamed without changes.
32 changes: 32 additions & 0 deletions app/docs/statistika/standar-deviasi/page.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# standar_deviasi

Rumus:

```
σ = √∑(x - μ)^2 / n
```

Fungsi [sumber kode [disini](https://github.com/slowy07/OpenSeries/blob/main/OpenSeries/statistika.py#L27)]

```python
def standar_deviasi(
vektor: np.ndarray
) -> Union[float, str]:
```

Contoh Kode

```python
import numpy as np
from OpenSeries import statistika as statistika

# contoh dari standar deviasi
vektor = np.array([1, 2, 3, 4, 5])
hasil = statistika.standar_deviasi(vektor)
print(hasil)

```

## Coba Sekarang

<iframe src="https://replit.com/@ItsArul/standar_deviasi?embed=1&theme=light" className="aspect-video w-full" />
13 changes: 11 additions & 2 deletions constants/documentations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,18 @@ export const documentations = [
title: "Hukum Ohm",
href: "/docs/fisika/hukum-ohm"
},
]
},
{
parent: "Statistika",
childs: [
{
title: "entropy",
href: "/docs/statistika/entropy"
},
{
title: "Hukum entropy",
href: "/docs/fisika/entropy"
title: "standar deviasi",
href: "/docs/statistika/standar-deviasi"
},
]
}
Expand Down

0 comments on commit ce46eec

Please sign in to comment.