[Feature] #7 계산모듈 작성 - #10
Merged
Merged
Conversation
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.
📌 관련 이슈
Closes #7
🛠 작업 내용
calcs/모듈 신설: 카페인 잔류량 및 관련 지표 계산 로직 추가 (Django 의존성 없는 순수 계산 모듈)pharmacokinetics.py(CALC-001): 1구획 지수감쇠 모델 기반 체내 잔류 카페인 산출 (concentration_at), 반감기 ↔ 소실상수 변환, 체중 보정 공용 유틸(clamp_weight,dose_scale) 포함cutoff.py(CALC-002): 목표 취침시각 기준 카페인 섭취 마감시각(t_cut) 산출allowance.py(CALC-003): 목표 취침시각 기준 오늘 남은 허용 카페인량 및 잔 수 산출night_schedule.py(CALC-004): 밤샘 시 목표 농도 밴드를 유지하기 위한 섭취 스케줄 산출, 체중 기반 밴드 자동 계산(default_band) 포함marginal_utility.py(CALC-006): 추가 섭취의 한계효용(Δg) 판정 로직personalization.py(CALC-005): 수면 기록 기반 개인화 임계치(θ) 추정 로직.gitignore에 로컬 수동 테스트용calcs/_scratch.py제외 규칙 추가📸 스크린샷 (UI 변경 시)
✅ 체크리스트
calcs/_scratch.py로 각 모듈 함수 수동 검증)