WeibullDataSet.Calculate: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
Line 17: Line 17:
   WDS.AddFailure(130, 1)   
   WDS.AddFailure(130, 1)   
    
    
  {{APIComment|'Fit the data to a life distribution, using all default analysis settings.}}
{{APIComment|'Set the life distribution.}}
  WDS.AnalysisSettings.Distribution = WeibullSolverDistribution.Weibull
  WDS.AnalysisSettings.Parameters = WeibullSolverNumParameters.MS_2Parameter
 
  {{APIComment|'Fit the data to the life distribution, using all default analysis settings.}}
   WDS.Calculate()
   WDS.Calculate()
    
    

Revision as of 20:06, 6 May 2014


Fits the distribution to the current data set using the settings specified in the AnalysisSettings property.

This is equivalent to clicking the Calculate icon on the standard folio control panel and publishing the results.

Syntax

  • Calculate()

Usage Example

 'Declare a new WeibullDataSet object. See WeibullDataSet. 
 Dim WDS As New WeibullDataSet("AddFailure_Example")

 'Add failure times to the data set. 
 WDS.AddFailure(100, 1)
 WDS.AddFailure(120, 1)
 WDS.AddFailure(130, 1)  
 
 'Set the life distribution. 
 WDS.AnalysisSettings.Distribution = WeibullSolverDistribution.Weibull
 WDS.AnalysisSettings.Parameters = WeibullSolverNumParameters.MS_2Parameter
 
 'Fit the data to the life distribution, using all default analysis settings. 
 WDS.Calculate()
 
 'Retrieve the fitted life distribution model. See cModel. 
 Dim model As cModel
 model = WDS.FittedModel