Bodh
बोध (Sanskrit: awareness, understanding) — Psychology engine for cognition, perception, learning, and decision-making.
Part of the AGNOS science crate ecosystem.
Key Capabilities
- Psychophysics: Weber-Fechner law, Stevens' power law, Fitts' law, Hick's law
- Cognition: Working memory (Baddeley), dual process theory (Kahneman), cognitive load
- Learning: Ebbinghaus forgetting curve, spaced repetition, Rescorla-Wagner conditioning
- Decision-making: Prospect theory (Kahneman/Tversky), expected utility, bounded rationality
- Perception: Signal detection theory (d-prime), Gestalt principles
- Psychometrics: Cronbach's alpha, split-half reliability, Big Five measurement
- Development: Piaget stages, Erikson psychosocial stages
Quick Start
use psychophysics;
// Fitts' law: index of difficulty for a UI target
let id = fitts_law.unwrap;
assert!; // 7 bits
// Ebbinghaus forgetting curve
let retention = ebbinghaus_forgetting.unwrap;
assert!; // perfect at t=0
// Prospect theory value function
let gain = prospect_theory_value.unwrap;
let loss = prospect_theory_value.unwrap;
assert!; // loss aversion
Feature Flags
| Feature | Default | Description |
|---|---|---|
std |
Yes | Standard library support |
hisab |
No | Advanced math via hisab |
pramana |
No | Statistics via pramana |
logging |
No | Tracing subscriber |
full |
No | All features |
Consumers
- bhava — psychometric validation of personality measurements
- kiran/joshua — NPC cognition, player modeling
- agnosai — decision-making models for agents
License
GPL-3.0-only