#!/usr/bin/env python3
"""Auto-generated by AGI Loop cycle #1118
Task: cử

</think>

Write a Python function that calculates the number of relevant episodes recalled based on a given emotional peak level, where emotional peak level is a float between 0.0 and 1.0, and ret
Generated: 2026-02-12T20:57:59.548701
"""

import math

def calculate_relevant_episodes(emotional_peak_level):
    # Scale the emotional_peak_level to a range that can represent episode counts
    # Using a logarithmic scale to reflect more nuanced recall at higher emotional peaks
    if emotional_peak_level <= 0.0:
        return 0
    scaled_value = math.log(emotional_peak_level + 0.1) * 10  # Add 0.1 to avoid log(0)
    # Round to nearest integer and ensure it's non-negative
    return max(0, round(scaled_value))

if __name__ == '__main__':
    test_values = [0.1, 0.5, 0.8, 0.95, 0.0]
    for value in test_values:
        count = calculate_relevant_episodes(value)
        print(f"Emotional Peak Level: {value:.2f} -> Relevant Episodes: {count}")