Esempio n. 1
0
 def define_ds_go_fit(cls):
     ds_go_fitter = MultistageFitter()
     ds_go_fitter.add_stage(0, 98, 'delayed-s-shaped')
     ds_go_fitter.add_stage(98,
                            250,
                            'goel-okumoto',
                            initial_approx=(90, 0.001))
     cls.ds_go_fit = ds_go_fitter.fit('ntds')
Esempio n. 2
0
 def define_log_mo_fit(cls):
     log_mo_fitter = MultistageFitter()
     log_mo_fitter.add_stage(0,
                             110,
                             'logistic',
                             initial_approx=(800, 0.001, 100))
     log_mo_fitter.add_stage(110,
                             209,
                             'musa-okumoto',
                             initial_approx=(90, 0.001))
     cls.log_mo_fit = log_mo_fitter.fit('mixed-waterfall-agile')
Esempio n. 3
0
 def test_defining_a_stage_with_initial_time_different_than_previous_stage_end_time_should_raise_exception(
         self):
     with self.assertRaises(InvalidStageDefinitionException) as error:
         multistage_fitter = MultistageFitter()
         multistage_fitter.add_stage(0, 87, 'delayed-s-shaped')
         multistage_fitter.add_stage(90, 250, 'goel-okumoto')
     self.assertEqual(
         error.exception.strerror,
         'The added stage must begin at the same t where the previous stage '
         'ends')
Esempio n. 4
0
 def define_ds_go_fit(cls):
     multistage_fitter = MultistageFitter()
     multistage_fitter.add_stage(0, 87, 'delayed-s-shaped')
     multistage_fitter.add_stage(87, 250, 'goel-okumoto')
     return multistage_fitter.fit('ntds')
Esempio n. 5
0
 def define_full_goel_okumoto_fit(cls):
     multistage_fitter = MultistageFitter()
     multistage_fitter.add_stage(0, 250, 'goel-okumoto')
     return multistage_fitter.fit('ntds')
from src.domain.fitters.multistage_fitter import MultistageFitter

multistage_fitter = MultistageFitter()
multistage_fitter.add_stage(0, 100, 'delayed-s-shaped')
multistage_fitter.add_stage(100, 209, 'goel-okumoto')
fit = multistage_fitter.fit('mixed-waterfall-agile')
fit.show_results(plot_mttf=True, plot_mtbf=True)
Esempio n. 7
0
 def define_invalid_ds_go_fit(self):
     ds_go_fitter = MultistageFitter()
     ds_go_fitter.add_stage(0, 87, 'delayed-s-shaped')
     ds_go_fitter.add_stage(87, 250, 'goel-okumoto')
     ds_go_fitter.fit('ntds')
from src.domain.fitters.multistage_fitter import MultistageFitter

multistage_fitter = MultistageFitter()
multistage_fitter.add_stage(0, 98, 'delayed-s-shaped')
multistage_fitter.add_stage(98, 250, 'goel-okumoto', initial_approx=(90, 0.001))
fit = multistage_fitter.fit('ntds')
fit.show_results(plot_mttf=True, plot_mtbf=True)
from src.domain.fitters.multistage_fitter import MultistageFitter

multistage_fitter = MultistageFitter()
multistage_fitter.add_stage(0, 250, 'goel-okumoto')
fit = multistage_fitter.fit('ntds')

fit.show_results(plot_mttf=True, plot_mtbf=True)
from src.domain.fitters.multistage_fitter import MultistageFitter

log_mo_fitter = MultistageFitter()
log_mo_fitter.add_stage(0, 110, 'logistic', initial_approx=(800, 0.001, 100))
log_mo_fitter.add_stage(110, 209, 'musa-okumoto', initial_approx=(90, 0.001))
log_mo_fit = log_mo_fitter.fit('mixed-waterfall-agile')
log_mo_fit.show_results()