Search Results for

    Show / Hide Table of Contents

    Class DataTableEvidenceReaderCommandFactory

    A default implementation of IEvidenceReaderCommandFactory based on a DataTable and a simple partitioning scheme based on a partition column.

    Inheritance
    Object
    DataTableEvidenceReaderCommandFactory
    Implements
    IEvidenceReaderCommandFactory
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: BayesServer.Data
    Assembly: BayesServer.Data.dll
    Syntax
    public sealed class DataTableEvidenceReaderCommandFactory : IEvidenceReaderCommandFactory
    Remarks

    In order to calculate the partition for a record, the value in the partition column modulo the number of partitions is used.

    Constructors

    DataTableEvidenceReaderCommandFactory(DataTable, IList<VariableReference>, ReaderOptions, String)

    Initializes a new instance of the DataTableEvidenceReaderCommandFactory class.

    Declaration
    public DataTableEvidenceReaderCommandFactory(DataTable data, IList<VariableReference> variables, ReaderOptions readerOptions, string partitionColumn)
    Parameters
    Type Name Description
    DataTable data

    Non-temporal data.

    IList<VariableReference> variables

    Non-temporal variable references.

    ReaderOptions readerOptions

    Non-temporal options for reading the data.

    String partitionColumn

    A partition column for the non-temporal data.

    DataTableEvidenceReaderCommandFactory(DataTable, IList<VariableReference>, ReaderOptions, String, DataTable, IList<VariableReference>, TemporalReaderOptions, String)

    Initializes a new instance of the DataTableEvidenceReaderCommandFactory class.

    Declaration
    public DataTableEvidenceReaderCommandFactory(DataTable data, IList<VariableReference> variables, ReaderOptions readerOptions, string partitionColumn, DataTable temporalData, IList<VariableReference> temporalVariables, TemporalReaderOptions temporalReaderOptions, string temporalPartitionColumn)
    Parameters
    Type Name Description
    DataTable data

    Non-temporal data.

    IList<VariableReference> variables

    Non-temporal variable references.

    ReaderOptions readerOptions

    Non-temporal options for reading the data.

    String partitionColumn

    A partition column for the non-temporal data.

    DataTable temporalData

    Temporal data.

    IList<VariableReference> temporalVariables

    Temporal variables

    TemporalReaderOptions temporalReaderOptions

    Temporal options for reading the data

    String temporalPartitionColumn

    A partition column for the temporal data.

    DataTableEvidenceReaderCommandFactory(DataTable, IList<VariableReference>, TemporalReaderOptions, String)

    Initializes a new instance of the DataTableEvidenceReaderCommandFactory class.

    Declaration
    public DataTableEvidenceReaderCommandFactory(DataTable temporalData, IList<VariableReference> temporalVariables, TemporalReaderOptions temporalReaderOptions, string temporalPartitionColumn)
    Parameters
    Type Name Description
    DataTable temporalData

    Temporal data.

    IList<VariableReference> temporalVariables

    Temporal variables

    TemporalReaderOptions temporalReaderOptions

    Temporal options for reading the data

    String temporalPartitionColumn

    A partition column for the temporal data.

    Methods

    Create(Network)

    Create an evidence reader command, based on a specific network which may be a copy of the original.

    Declaration
    public IEvidenceReaderCommand Create(Network network)
    Parameters
    Type Name Description
    Network network

    The network to base the reader on.

    Returns
    Type Description
    IEvidenceReaderCommand

    A new evidence reader command.

    CreatePartitioned(Network, DataPartitioning, Int32)

    Create an evidence reader command on a partition, based on a specific network which may be a copy of the original.

    Declaration
    public IEvidenceReaderCommand CreatePartitioned(Network network, DataPartitioning dataPartitioning, int partitionCount)
    Parameters
    Type Name Description
    Network network

    The network to base the reader on.

    DataPartitioning dataPartitioning

    The partition number and method such as include/exclude.

    Int32 partitionCount

    The total number of partitions.

    Returns
    Type Description
    IEvidenceReaderCommand

    A new evidence reader command.

    Implements

    IEvidenceReaderCommandFactory
    In This Article
    Back to top Copyright Bayes Server Ltd. All rights Reserved.