cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/allocationpolicies/power/PowerVmAllocationPolicyMigrationLocalRegression.java
@Override
    public boolean isHostOverloaded(PowerHost host) {
        final double predictedUsageThreshold = getOverUtilizationThreshold(host);
        if(predictedUsageThreshold == Double.MAX_VALUE){
            return getFallbackVmAllocationPolicy().isHostOverloaded(host);
        }

        addHistoryEntryIfAbsent(host, predictedUsageThreshold);
        return predictedUsageThreshold >= 1;
    }
/**
     * Checks if a host is over utilized based on estimation of CPU over utilization threshold computed
     * using Local Regression.
     *
     * @param host the host
     * @return true, if is host over utilized; false otherwise
     */
Checks if a host is over utilized based on estimation of CPU over utilization threshold computed
using Local Regression.

@param host the host
@return true, if is host over utilized; false otherwise
Checks if a host is over utilized based on estimation of CPU over utilization threshold computed using Local Regression . @param host the host @return true if is host over utilized ; false otherwise
@Override
    public boolean isHostOverloaded(PowerHost host) {
        final double predictedUsageThreshold = getOverUtilizationThreshold(host);
        if(predictedUsageThreshold == Double.MAX_VALUE){
            return getFallbackVmAllocationPolicy().isHostOverloaded(host);
        }
        addHistoryEntryIfAbsent(host, predictedUsageThreshold);
        return predictedUsageThreshold >= 1;
    }
@ Override public boolean isHostOverloaded ( PowerHost host ) { final double predictedUsageThreshold = getOverUtilizationThreshold ( host ) ; if ( predictedUsageThreshold == Double . MAX_VALUE ) { return getFallbackVmAllocationPolicy ( ) . isHostOverloaded ( host ) ; } addHistoryEntryIfAbsent ( host , predictedUsageThreshold ) ; return predictedUsageThreshold >= 1 ; }
Checks if a host is over utilized based on estimation of CPU over utilization threshold computed
 using Local Regression.
Checks if a host is over utilized based on estimation of CPU over utilization threshold computed using Local Regression .