🔧 SQA::SeasonalAnalyzer¶
Source Information
Defined in: lib/sqa/seasonal_analyzer.rb:18
🏭 Class Methods¶
.analyze(stock)¶
Analyze seasonal performance patterns
Parameters
| Name | Type | Description |
|---|---|---|
stock |
SQA::Stock |
Stock to analyze |
Returns
Type: Hash
Seasonal performance metadata
Source Location
.filter_by_months(stock, months)¶
Filter data by calendar months
Parameters
| Name | Type | Description |
|---|---|---|
stock |
SQA::Stock |
Stock to analyze |
months |
Array<Integer> |
Months to include (1-12) |
Returns
Type: Hash
Filtered data
Source Location
.filter_by_quarters(stock, quarters)¶
Filter data by quarters
Parameters
| Name | Type | Description |
|---|---|---|
stock |
SQA::Stock |
Stock to analyze |
quarters |
Array<Integer> |
Quarters to include (1-4) |
Returns
Type: Hash
Filtered data
Source Location
.detect_seasonality(monthly_returns)¶
Detect if stock has seasonal pattern
Parameters
| Name | Type | Description |
|---|---|---|
monthly_returns |
Hash |
Monthly return statistics |
Returns
Type: Boolean
True if significant seasonal pattern exists
Source Location
.context_for_date(date)¶
Get seasonal context for a specific date
Parameters
| Name | Type | Description |
|---|---|---|
date |
Date |
Date to check |
Returns
Type: Hash
Seasonal context