Home Manual Reference Source
import IndustryWidePredictionService from 'pvbid-sdk/src/domain/services/IndustryWidePredictionService.js'
public class | source

IndustryWidePredictionService

Constructor Summary

Public Constructor
public

constructor(lineItem: LineItem)

Constructor

Member Summary

Public Members
public

bid: *

public
public
public
public

models: *

public

Method Summary

Public Methods
public

Evaluates a single prediction model

public

Evaluates all the given models and returns a weighted average of the significant results

public

Evaluate the models using an experimental weighting

public

Retrieves the contribution weight for the line item

public

Retrieves a list of cost prediction models

public

Returns the distribution ranges

public

Retrieves a list of labor prediction models

public

getPredictionDependencies(): bidEntity[]

Gets the dependencies used in the prediction models for the given line item def id

public

Determine if the line item has any prediction models

Public Constructors

public constructor(lineItem: LineItem) source

Constructor

Params:

NameTypeAttributeDescription
lineItem LineItem

Public Members

public bid: * source

public distributionRanges: number[] source

public industryWidePredictionModels: * source

public lineItem: * source

public models: * source

public zFactor: number source

Public Methods

public evaluateModel(model: object): EvaluatedModel source

Evaluates a single prediction model

Params:

NameTypeAttributeDescription
model object

A prediction model to evaluate

Return:

EvaluatedModel

The result of evaluating the model

public evaluateModels(models: object[]): number source

Evaluates all the given models and returns a weighted average of the significant results

Params:

NameTypeAttributeDescription
models object[]

The models to evaluate

Return:

number

The weighted avg of evaluating the given models

public evaluateModelsExperimental(models: object[]): number source

Evaluate the models using an experimental weighting

Params:

NameTypeAttributeDescription
models object[]

Return:

number

public getContributionWeight(): number source

Retrieves the contribution weight for the line item

Return:

number

The contribution weight

public getCostPredictionModels(): Object[] source

Retrieves a list of cost prediction models

Return:

Object[]

cost prediction models

public getDistributionRanges(): number[] source

Returns the distribution ranges

Return:

number[]

The distribution ranges

public getLaborPredictionModels(): Object[] source

Retrieves a list of labor prediction models

Return:

Object[]

labor prediction models

public getPredictionDependencies(): bidEntity[] source

Gets the dependencies used in the prediction models for the given line item def id

Return:

bidEntity[]

The prediction model dependencies

public hasPredictionModels(): boolean source

Determine if the line item has any prediction models

Return:

boolean