Package net.sourceforge.processdash.ev.ci

Examples of net.sourceforge.processdash.ev.ci.ConfidenceInterval


    private boolean beforeZeroDate(Date d) {
        return rezeroAtStartDate && d.compareTo(scheduleStartDate) < 0;
    }

    private void createCostConfidenceInterval() {
        ConfidenceInterval costInterval = null;
        if (completionDate == null)
            costInterval = costIntervalProvider.getConfidenceInterval(taskList);
        schedule.getMetrics().setCostConfidenceInterval(costInterval);
    }
View Full Code Here


    }



    private void createTimeErrConfidenceInterval() {
        ConfidenceInterval timeErrInterval =
            timeErrIntervalProvider.getConfidenceInterval(taskList);
        schedule.getMetrics().setTimeErrConfidenceInterval(timeErrInterval);
    }
View Full Code Here

    }

    private void createScheduleConfidenceInterval() {
        EVMetrics metrics = schedule.getMetrics();
        try {
            ConfidenceInterval costInterval =
                metrics.getCostConfidenceInterval();
            ConfidenceInterval timeErrInterval =
                metrics.getTimeErrConfidenceInterval();

            ConfidenceInterval completionDate = null;
            if (costInterval != null && timeErrInterval != null) {
                EVScheduleRandom sr = new EVScheduleRandom(schedule);
                EVScheduleConfidenceIntervals ci =
                    new EVScheduleConfidenceIntervals
                        (sr, Collections.singletonList(sr));
View Full Code Here

   
    protected ConfidenceInterval fetchHistoricalInterval(
            EVConfidenceIntervalUtils.Purpose purpose, double newRatio) {
        String histData = getSetting(
            EVMetadata.Forecast.Ranges.SAVED_HIST_DATA, null);
        ConfidenceInterval result = EVConfidenceIntervalUtils
                .getConfidenceInterval(histData, purpose);
        if (result == null)
            return null;

        if (!badDouble(newRatio) && newRatio > 0
View Full Code Here

            Double input = getInput(taskList);

            if (currentPlanProvider != null
                    && getBoolSetting(
                        EVMetadata.Forecast.Ranges.USE_CURRENT_PLAN, true)) {
                ConfidenceInterval currentInterval =  checkInterval(
                    currentPlanProvider.getConfidenceInterval(taskList), input);
                if (currentInterval != null)
                    return currentInterval;
            }
          
            if (histDataProvider != null
                    && getBoolSetting(
                        EVMetadata.Forecast.Ranges.USE_HIST_DATA, false)) {
                ConfidenceInterval histInterval = checkInterval(
                    histDataProvider.getConfidenceInterval(taskList), input);
                if (histInterval != null)
                    return histInterval;
            }
View Full Code Here

            EVMetrics metrics = schedule.getMetrics();
            if (metrics.percentComplete() > 0.995)
                return null;

            try {
                ConfidenceInterval costInterval =
                    metrics.getCostConfidenceInterval();
                ConfidenceInterval timeErrInterval =
                    metrics.getTimeErrConfidenceInterval();

                ConfidenceInterval completionDate = null;
                if (costInterval != null && timeErrInterval != null) {
                    EVScheduleRandom sr = new EVScheduleRandom(schedule);
                    EVScheduleConfidenceIntervals ci =
                        new EVScheduleConfidenceIntervals
                            (sr, Collections.singletonList(sr));
View Full Code Here

        if (schedule.subSchedules.isEmpty())
            return false;
        Iterator i = schedule.subSchedules.iterator();
        while (i.hasNext()) {
            EVSchedule s = (EVSchedule) i.next();
            ConfidenceInterval ci = s.getMetrics().getCostConfidenceInterval();
            if (ci == null)
                return false;
            if (!(ci.getViability() > ConfidenceInterval.ACCEPTABLE))
                return false;
        }
        return true;
    }
View Full Code Here

        if (schedule.subSchedules.isEmpty())
            return false;
        Iterator i = schedule.subSchedules.iterator();
        while (i.hasNext()) {
            EVSchedule s = (EVSchedule) i.next();
            ConfidenceInterval ci =
                s.getMetrics().getTimeErrConfidenceInterval();
            if (ci == null)
                return false;
            if (!(ci.getViability() > ConfidenceInterval.ACCEPTABLE))
                return false;
        }
        return true;
    }
View Full Code Here

            // schedule - like a missing task list, for example.  If such a
            // schedule is present, we can't generate any interval for it.
            if (taskList.getSchedule().getEffectiveDate() == null)
                return null;

            ConfidenceInterval result = super.getConfidenceInterval(taskList);

            // always recenter the time error interval - wide intervals are
            // of little consequence for rollups.  Bias causes bigger
            // problems.
            if (isCentered(result) == false)
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.ev.ci.ConfidenceInterval

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.