Home Manual Reference Source
public class | source

PredictionService

Constructor Summary

Public Constructor
public

constructor(lineItem: LineItem)

Constructor

Member Summary

Public Members
public

bid: *

public
public

models: *

public

zFactor: *

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

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 lineItem: * source

public models: * source

public zFactor: * 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 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