ParamBoundsValues Class: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) No edit summary |
Chris Kahn (talk | contribs) |
||
Line 9: | Line 9: | ||
== Usage Example == | == Usage Example == | ||
{{APIComment|'Declare a new repository connection class.}} | {{APIComment|'Declare a new repository connection class.}} | ||
Dim MyRepository As New Repository | |||
{{APIComment|'Connect to the Synthesis repository.}} | {{APIComment|'Connect to the Synthesis repository.}} | ||
Dim Success As Boolean = False | Dim Success As Boolean = False | ||
Success = MyRepository.ConnectToRepository(" | Success = MyRepository.ConnectToRepository("C:\Users\Name\Documents\ReliaSoft\Files\repository.rsr9") | ||
{{APIComment|'Get the | {{APIComment|'Get a list of the IDs/names of projects in the connected repository.}} | ||
Dim ListOfModels() As | Dim ListOfModels() As NameIdPair | ||
ListOfModels = MyRepository.GetAllModelsInfo() | ListOfModels = MyRepository.GetAllModelsInfo() | ||
{{APIComment|' | {{APIComment|'Use the ID of the first model in the list to retrieve it.}} | ||
Dim AModel as cModel | Dim AModel as cModel | ||
AModel = MyRepository.GetModel(ListOfModels(0).ID) | AModel = MyRepository.GetModel(ListOfModels(0).ID) | ||
Line 27: | Line 27: | ||
ListOfBounds = AModel.Bounds_Parameters() | ListOfBounds = AModel.Bounds_Parameters() | ||
{{APIComment|'Get the | {{APIComment|'Get the lower bound on the first parameter.}} | ||
Dim LowerBoundValue as Double | Dim LowerBoundValue as Double | ||
LowerBoundValue = ListOfBounds(0).Lower | LowerBoundValue = ListOfBounds(0).Lower |
Revision as of 23:01, 17 April 2014
Stores the confidence bounds on the model parameters. Use the SetConfidenceLevel method to specify the confidence bound settings.
Properties
- Upper (as double) Gets the upper value.
- Lower (as double) Gets the lower value.
- ParamName (as string) Gets the parameter name.
Usage Example
'Declare a new repository connection class. Dim MyRepository As New Repository 'Connect to the Synthesis repository. Dim Success As Boolean = False Success = MyRepository.ConnectToRepository("C:\Users\Name\Documents\ReliaSoft\Files\repository.rsr9") 'Get a list of the IDs/names of projects in the connected repository. Dim ListOfModels() As NameIdPair ListOfModels = MyRepository.GetAllModelsInfo() 'Use the ID of the first model in the list to retrieve it. Dim AModel as cModel AModel = MyRepository.GetModel(ListOfModels(0).ID) 'Get the list of parameter bounds. Dim ListOfBounds as List(Of ParamBoundsValues) ListOfBounds = AModel.Bounds_Parameters() 'Get the lower bound on the first parameter. Dim LowerBoundValue as Double LowerBoundValue = ListOfBounds(0).Lower