Created
January 23, 2019 04:52
-
-
Save thierryx96/02ee21aabbe6ae8109428fee13f5d5bb to your computer and use it in GitHub Desktop.
SM2
This file contains 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
DataRecord:=GetDataRecord(ElementNo); | |
with DataRecord do begin | |
if Grade>=3 then begin | |
if Repetition=0 then begin | |
Interval:=1; | |
Repetition:=1; | |
end else if Repetition=1 then begin | |
Interval:=6; | |
Repetition:=2; | |
end else begin | |
Interval:=round(Interval*EF); | |
Repetition:=Repetition+1; | |
end; | |
end else begin | |
Repetition:=0; | |
Interval:=1; | |
end; | |
EF:=EF+(0.1-(5-Grade)*(0.08+(5-Grade)*0.02)); | |
if EF<1.3 then | |
EF:=1.3; | |
NextInterval:=Interval; | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment