import IndustryWidePredictionService from 'pvbid-sdk/src/domain/services/IndustryWidePredictionService.js'IndustryWidePredictionService
Constructor Summary
| Public Constructor | ||
| public | 
       constructor(lineItem: LineItem) Constructor  | 
    |
Member Summary
| Public Members | ||
| public | 
       bid: *  | 
    |
| public | 
      
       | 
    |
| public | 
      
       | 
    |
| public | 
       lineItem: *  | 
    |
| public | 
       lineItemDefs: *  | 
    |
| public | 
       models: *  | 
    |
| public | 
      
       | 
    |
| public | 
      
       | 
    |
| public | 
      
       | 
    |
Method Summary
| Public Methods | ||
| public | 
       evaluateModel(model: object): EvaluatedModel Evaluates a single prediction model  | 
    |
| public | 
       evaluateModels(models: object[]): number Evaluates all the given models and returns a weighted average of the significant results  | 
    |
| public | 
       evaluateModelsExperimental(models: object[]): number 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 Members
public bid: * source
public industryWidePredictionModels: * source
public lineItem: * source
public lineItemDefs: * source
public models: * source
public predictionModel: * source
Public Methods
public evaluateModel(model: object): EvaluatedModel source
Evaluates a single prediction model
Params:
| Name | Type | Attribute | Description | 
| model | object | A prediction model to evaluate  | 
    
public evaluateModels(models: object[]): number source
Evaluates all the given models and returns a weighted average of the significant results
Params:
| Name | Type | Attribute | Description | 
| models | object[] | The models to evaluate  | 
    
public evaluateModelsExperimental(models: object[]): number source
Evaluate the models using an experimental weighting
Params:
| Name | Type | Attribute | Description | 
| models | object[] | 
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  |