Skip to content

Commit

Permalink
Пересчитывал для Лехи на 9 лет
Browse files Browse the repository at this point in the history
  • Loading branch information
iMissile committed Sep 4, 2017
1 parent 5fc7bad commit 4f18593
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions 66 availability_calc/calc5.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,11 @@ equip_df
options(digits=6)
spta_df <- equip_df %>%
group_by(element, site) %>%
summarise(total=sum(q*amount), afr7=mean(afr7)) %>%
mutate(spta=round(total*afr7/100, digits=2)) %>%
summarise(total=sum(q*amount), afr=mean(afr), afr9=mean(afr)*9) %>%
mutate(spta=round(total*afr9/100, digits=2)) %>%
# fits <- 10^9/mtbf # mtbf -- в часах
# AFR = 1-exp(-8760/MTBF{в часах})
mutate(lambda=1/(-8760/log(1-afr/100))) %>%
#filter(spta<0.5) %>%
arrange(site, desc(spta))
Expand Down

0 comments on commit 4f18593

Please sign in to comment.