Repository navigation
RepairableRBD: expected work and cost in each of a run of windows - #375
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019Km2eWBiPJ5JNkme3vRg4B
Keep both sides of the __init__ exports; split grouped docstring parameters so the API docstring test passes. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019Km2eWBiPJ5JNkme3vRg4B
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds two methods answering a planner's budget questions window by window, from the system's state now:
expected_events_by_window(ends=None, *, width=None, count=None, state=None, ...)returnsEventsByWindow: each window's own expected counts (not running totals), exact, by component and for the system. Uneven windows are fine.cost_by_window(ends=None, *, width=None, count=None, state=None, mc_samples=None, seed=None, engine='auto', levels=(10, 50, 90), ...)returnsCostByWindow: each window's exact mean (differencedexpected_cost) and its spread from one seeded set of histories cut at every window's end, so all windows are of the same histories. Alsopercentile(q),total_percentile(q),probability_above(budget)andoutcomes(window)(each distinct cost and its share, since costs come in steps).Checked: windows add to
expected_events/expected_costover the span; the pump/valve/sensor year reproduces the hand-worked table; a never-failing bearing costs exactly one price per shut; simulated means within 4 standard errors (seeded); the windows' simulated costs add exactly to one run to the end; no window cost is negative. Routes, capability matrix, guide, README use cases and changelog updated.🤖 Generated with Claude Code
https://claude.ai/code/session_019Km2eWBiPJ5JNkme3vRg4B