Module: Legion::Extensions::Agentic::Executive::Compass::Helpers::Constants
- Defined in:
- lib/legion/extensions/agentic/executive/compass/helpers/constants.rb
Constant Summary collapse
- CARDINAL_DIRECTIONS =
Cardinal directions mapped to value axes
{ north: :truth, east: :utility, south: :beauty, west: :safety }.freeze
- INTERCARDINAL_DIRECTIONS =
Intercardinal directions (blended values)
{ northeast: %i[truth utility], southeast: %i[utility beauty], southwest: %i[beauty safety], northwest: %i[safety truth] }.freeze
- BIAS_TYPES =
Bias types that cause magnetic declination
%i[ confirmation anchoring availability recency authority framing sunk_cost optimism ].freeze
- MAX_COMPASSES =
50- MAX_BIASES =
20- DECLINATION_DECAY =
0.02- CALIBRATION_BOOST =
0.15- ACCURACY_LABELS =
Bearing accuracy labels
[ [(0.8..), :precise], [(0.6...0.8), :reliable], [(0.4...0.6), :approximate], [(0.2...0.4), :drifting], [..0.2, :lost] ].freeze
- DECLINATION_LABELS =
Declination severity labels
[ [(0.8..), :severe], [(0.6...0.8), :significant], [(0.4...0.6), :moderate], [(0.2...0.4), :mild], [..0.2, :negligible] ].freeze
Class Method Summary collapse
Class Method Details
.label_for(table, value) ⇒ Object
55 56 57 58 |
# File 'lib/legion/extensions/agentic/executive/compass/helpers/constants.rb', line 55 def self.label_for(table, value) table.each { |range, label| return label if range.cover?(value) } table.last.last end |