Documentation
Table of Contents

Method Record

Namespace
IntentSharp.Trials
Assembly
IntentSharp.dll

Record(IntentTrial, TrialSample)

For a runner: records how a sampled call compared. trial is the one TryBeginSample(DocumentId, out IntentTrial?) returned; a sample of a trial that has stopped since, or was started again, is dropped. With a document store, the sample is added to the counts in its state after this returns.

public void Record(IntentTrial trial, TrialSample sample)

Parameters

trial IntentTrial

The trial TryBeginSample(DocumentId, out IntentTrial?) returned for the call.

sample TrialSample

The outcome, and the tokens the candidate used.

Exceptions

ArgumentNullException

trial or sample is null.