-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Develop #14
Merged
Develop #14
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
4c63c46
feat: compress img
8e544ed
feat: fix responsive design landing page (#12)
kimmyxpow c9aacb6
feat: embel replit (#13)
kimmyxpow b2ddd18
docs: entropy
dherlyar ce46eec
docs: entropy
dherlyar 7fcc67c
docs:
dherlyar e1bf2a6
docs: standar_deviasi & entropy
dherlyar 39faa3c
ubah kode sumber
dherlyar c7504f0
docs:
dherlyar 03b6b4b
docs: instalasi
dherlyar 1bd953e
docs: remove instalasi & informasi module link (#26)
kimmyxpow File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# entropy | ||
|
||
Rumus: | ||
|
||
``` | ||
H(X) = -∑p(x)log(p(x)) | ||
``` | ||
|
||
Fungsi [sumber kode [disini](https://github.com/slowy07/OpenSeries/blob/b676b188a1d347c1552069cfa66673493b6999c1/OpenSeries/statistika.py#L6)] | ||
|
||
```python | ||
def entropy( | ||
label: list[int], base: int = None | ||
) -> Union[float, int, str]: | ||
``` | ||
|
||
Contoh Kode | ||
|
||
```python | ||
from OpenSeries import statistika as statistika | ||
|
||
# contoh dari entropy | ||
label = [1, 1, 2, 2, 3, 3] | ||
hasil_base_2 = statistika.entropy(label, base=2) | ||
print(hasil_base_2) | ||
``` | ||
|
||
## Coba Sekarang | ||
|
||
<iframe src="https://replit.com/@ItsArul/entropy?embed=1&theme=light" className="aspect-video w-full" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,11 @@ export const documentations = [ | |
{ | ||
title: "Hukum Ohm", | ||
href: "/docs/fisika/hukum-ohm" | ||
} | ||
}, | ||
{ | ||
title: "Hukum entropy", | ||
href: "/docs/fisika/entropy" | ||
}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. entropy tidak dalam fisika tapi buat kategori terbaru yang bernama |
||
] | ||
} | ||
]; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
untuk linknya arahkan jangan ke fork tapi ke openseriesnya contoh disini