-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calculations info #121
Calculations info #121
Conversation
|
||
Весь менструальный цикл можно разделить на 2 фазы: фолликулярную и лютеиновую. Фолликулярна фаза начинается с первого дня месячных и заканчивается овуляцией. Лютеиновая фаза начинается после овуляции и заканчивается месячными. В течение этих фаз главные гормоны постоянно перестраиваются, что сказывается на самочувствие. Ниже на картинке представлен график 28-дневного цикла. На нем показано, как меняются гормоны в каждую фазу. | ||
|
||
![Фазы менструального цикла](https://qpicture.ru/images/2022/12/27/crc.jpg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The image from remote server may be deleted. Let's save it and use our local copy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to insert my own image in the future.
So I don't want to save these images. If you save them, you need to write links.
info/CALCULATION-ru.md
Outdated
```ts | ||
function getOvulationStatus(startDate: Date, cycleLength: number){ | ||
const currentDay = getCurrentDay(startDate, cycleLength); | ||
const diff = cycleLength - currentDay; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about diffInDays
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
info/CALCULATION.md
Outdated
@@ -0,0 +1,191 @@ | |||
# Description of calculations | |||
|
|||
Let us introduce two basic concepts that are necessary for calculations: cycle length and period length. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
info/CALCULATION.md
Outdated
|
||
## Calculation the expected start date of the next period | ||
|
||
Let's say we know the start date of the last period and average cycle length. Then, to calculate the start date of the next period you need: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should
instead of you need
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
Another example with dates: | ||
Let period (and therefore the cycle) begin on January 1, the average length of cycle is 25 days. Then ovulation will occur on the 11th day of the cycle, that is, January 11. | ||
|
||
So the function will look like this: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will looks like this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this is the future tense.
But I can rewrite this sentence in simple tense.
Closed #118
I wrote in detail what rules we use to base our calculations. Please check it carefully. If you find grammatical errors, correct them yourself and commit.