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.

https://github.com/altunenes/weber_fechner

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

bevy psychology psychology-experiments psychophysics rust vision
Last synced: 5 months ago · JSON representation

Repository

psychophysics experiment about Weber–Fechner law based on vision using bevy game engine. also works in browser via WASM.

Basic Info
Statistics
  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
bevy psychology psychology-experiments psychophysics rust vision
Created over 2 years ago · Last pushed about 2 years ago
Metadata Files
Readme License

README.md

Rust

weber_fechner

Firefly Weber Fechner Ψ-rust programming, red happy cartoon crab 45875

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. image

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

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
enhancement (5) documentation (1) invalid (1) bug (1)
Pull Request Labels

Dependencies

.github/workflows/rust.yml actions
  • actions/checkout v3 composite
Cargo.lock cargo
  • 354 dependencies
Cargo.toml cargo