Class QueryFunction
Defines a function to be evaluated in a call to BayesServer.Inference.IInference.Query.
Inheritance
System.Object
    QueryFunction
  Implements
System.ComponentModel.INotifyPropertyChanged
  Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: BayesServer.Inference
Assembly: BayesServer.Inference.dll
Syntax
public sealed class QueryFunction : INotifyPropertyChanged
  Remarks
Functions do not form part of the core inference routine, but are evaluated afterwards in topological order.
Constructors
QueryFunction(QueryFunctionOutput)
Initializes a new instance of the QueryFunction class. The enabled property defaults to true.
Declaration
public QueryFunction(QueryFunctionOutput functionOutput)
  Parameters
| Type | Name | Description | 
|---|---|---|
| QueryFunctionOutput | functionOutput | Collects the output of the function evaluation.  | 
      
QueryFunction(QueryFunctionOutput, Boolean)
Initializes a new instance of the QueryFunction class.
Declaration
public QueryFunction(QueryFunctionOutput functionOutput, bool isEnabled)
  Parameters
| Type | Name | Description | 
|---|---|---|
| QueryFunctionOutput | functionOutput | Collects the output of the function evaluation.  | 
      
| System.Boolean | isEnabled | Sets the IsEnabled property.  | 
      
Properties
FunctionOutput
Gets the function to evaluate.
Declaration
public QueryFunctionOutput FunctionOutput { get; }
  Property Value
| Type | Description | 
|---|---|
| QueryFunctionOutput | The function.  | 
      
IsEnabled
Gets or sets a value indicating whether the function should be evaluated.
Declaration
public bool IsEnabled { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
Methods
Copy()
Copies this instance, creating a copy of the function output as well.
Declaration
public QueryFunction Copy()
  Returns
| Type | Description | 
|---|---|
| QueryFunction | A copy of this instance.  | 
      
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
  Event Type
| Type | Description | 
|---|---|
| System.ComponentModel.PropertyChangedEventHandler | 
Implements
      System.ComponentModel.INotifyPropertyChanged