https://github.com/altunenes/weber_fechner
psychophysics experiment about Weber–Fechner law based on vision using bevy game engine. also works in browser via WASM.
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.4%) to scientific vocabulary
Keywords
Repository
psychophysics experiment about Weber–Fechner law based on vision using bevy game engine. also works in browser via WASM.
Basic Info
- Host: GitHub
- Owner: altunenes
- License: mit
- Language: Rust
- Default Branch: master
- Homepage: https://altunenes.github.io/weber_fechner/
- Size: 120 MB
Statistics
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
weber_fechner
A psychophysics experiment about Weber–Fechner law based on vision using bevy game engine.
Weber-Fechner Law in Psychophysics
The Weber-Fechner law is a foundational principle in the field of psychophysics that describes the relationship between a physical stimulus and its perceived intensity. According to this law, the change in stimulus required to produce a noticeable difference is a constant proportion of the original stimulus. In simple terms, if you need to add 10 lbs to a 100 lbs weight to notice a difference, you'd need to add 20 lbs to a 200 lbs weight for the same effect.
Understanding the Weber-Fechner law is crucial for experiments that aim to measure human perception, as it helps to quantify how changes in physical stimuli translate to changes in human experience. This is vital in various applications ranging from medical diagnosis to the design of user interfaces.
🔵 Weber's Law
Weber's Law states that the smallest noticeable change in a stimulus (ΔI) is proportional to the initial intensity of the stimulus (I).
Formula
[
ΔI = k × I
]
Where:
- ΔI is the smallest noticeable change in the stimulus.
- I is the initial intensity of the stimulus.
- k is the Weber constant.
🔴 Fechner's Law
Fechner's Law takes Weber's Law a step further. It relates the perceived intensity (S) to the physical intensity (I) of the stimulus using a logarithmic scale.
Formula
[
S = k × log(I / I₀)
]
Where:
- S is the perceived intensity.
- I is the physical intensity of the stimulus.
- I₀ is the threshold intensity for perception.
- k is a constant.
WASM Support
Currently, it is possible to run the experiment on the web. You can try it here. But the desktop version is more stable.
Note: In WASM version, the loading time may take a while, so if you see a blank/white screen, please wait for a while.
Future Work
- This template can be used for other psychophysics experiments since it is very generic. Faces, objects, Gabors and other stimuli can be used instead of the ellipses. Bevy is a very powerful game engine and it can be used for other experiments as well. And it can work on any platform that supports Rust including mobile devices.
After all, isn't all psychology experiments just a game? :)
How to run
rust
cargo run --release
that's it!
Logic
- If you see more ellipses on the left, press the "1". If you see more ellipses on the right side, "0" if you perceive them as equal, press "space".
you can modify the number of trials, ellipse radius, or min_max values of distributions before the experiment. Also you can change the drawing method/distribution of ellipses.
Contribution
- Feel free to contribute to the project. I am open to any suggestions. Please open an issue if you have any questions or suggestions etc.
Owner
- Name: Enes
- Login: altunenes
- Kind: user
- Website: altunenes.github.io
- Repositories: 30
- Profile: https://github.com/altunenes
I like science, computers, and budgies :-)
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 10
- Total pull requests: 5
- Average time to close issues: 4 days
- Average time to close pull requests: less than a minute
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 0.4
- Average comments per pull request: 0.0
- Merged pull requests: 5
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- altunenes (9)
Pull Request Authors
- altunenes (5)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v3 composite
- 354 dependencies