Module: Legion::Extensions::Agentic::Attention::Telescope::Helpers::Constants

Defined in:
lib/legion/extensions/agentic/attention/telescope/helpers/constants.rb

Constant Summary collapse

LENS_TYPES =

Available lens types for cognitive telescopes

%i[refractor reflector catadioptric radio adaptive].freeze
OBSERVATION_MODES =

Observation modes

%i[survey focused tracking spectral].freeze
MAX_TELESCOPES =

Maximum telescopes in the observatory

100
MAX_OBSERVATIONS =

Maximum recorded observations

500
BASE_MAGNIFICATION =

Base and max magnification bounds

1.0
MAX_MAGNIFICATION =
100.0
FIELD_OF_VIEW_BASE =

Field of view base in radians (wide-open single radian)

1.0
ATMOSPHERIC_DISTORTION =

Atmospheric distortion coefficient (reduces clarity at low magnification)

0.1
CLARITY_LABELS =

Clarity labels (range-based, descending)

[
  [(0.85..),      :crystal],
  [(0.65...0.85), :clear],
  [(0.45...0.65), :hazy],
  [(0.25...0.45), :blurry],
  [..0.25,        :blind]
].freeze
DISTANCE_LABELS =

Distance labels (range-based, descending)

[
  [(0.85..),      :cosmic],
  [(0.65...0.85), :deep],
  [(0.4...0.65),  :medium],
  [(0.2...0.4),   :near],
  [..0.2,         :myopic]
].freeze

Class Method Summary collapse

Class Method Details

.label_for(table, value) ⇒ Object



50
51
52
53
# File 'lib/legion/extensions/agentic/attention/telescope/helpers/constants.rb', line 50

def self.label_for(table, value)
  table.each { |range, label| return label if range.cover?(value) }
  table.last.last
end