TMtxBinaryTest Class

Header: Dew.Stats/StatTools.h · Cross-compiler
tObjectTMtxComponentTMtxBinaryTest

class TMtxBinaryTest : public TMtxComponent;

Performs one and two test paired or unpaired binary test.

The component supports the following types of binary diagonstic tests:

  • One-sample test where the results can be arranged in single 2x2 table,
  • two-sample test where the results can be arranged in two 2x2 tables,
  • two-sample paired test where the results can be combined and arranged in single 2x2 table.

How to use TMtxBinaryTest component?

Results:
Depending on test type, component returns the following results: 1. One-test : The TMtxBinaryTest::Test1Table returns test row totals, column totals, sensitivity and its CIAlpha confidence interval, specificity and it's CIAlpha confidence interval. 2. Two-test unpaired: The TMtxBinaryTest::Test1Table returns first test row and column totals, first test sensitivity and specificity, the TMtxBinaryTest::Test2Table returns second test row and column totals, second test sensitivity and specificity. 3. Two-test paired : The TMtxBinaryTest::Test1Table returns first and second test sensitivity i.e TBinaryTestTable::Se1 and TBinaryTestTable::Se2 and their CIAlpha confidence intervals.

Constructors

NameDescription
TMtxBinaryTest (2)

Destructors

NameDescription
~TMtxBinaryTest

Properties

NameTypeDescription
AutoUpdateboolIf true, any change will trigger the recalculation.
BlockAssignboolBlock streaming of specific properties when storing only a "template".
CIAlphadoubleDefines Se and SP desired confidence level.
DirtyboolWhen any of the TMtxBinaryTest properties changes, this property is automatically set to true.
EditorActiveboolReturns True, if the component editor is displayed.
NameDewString
PairedboolIf true then the table is paired.
ReferenceTReferenceList*Stores a list of components that have to be notified, when this component is destroyed.
Test1TableTBinaryTestTable*First test table.
Test2TableTBinaryTestTable*Second test (optional) table.
TestTypeTBinaryTestTypeTBinaryTestType type.

Methods

NameDescription
AllowStreamingReturns the negatated value of BlockAssign.
AssignAssign values of all published properties from Source.
AssignTemplateAssign values of "template-like" published properties from Source.
EditorClassTo be overriden in descendanr classses.
LoadFromStreamLoad the component from Src stream.
LoadTemplateFromFileLoad a template from file.
LoadTemplateFromStreamLoad a template from stream.
RecalcRecalculates test resutlts.
ReferenceRemoved
ResetReset is called after loading the data from stream or file.
SaveTemplateToFileSave template to file.
SaveTemplateToStreamSave template to stream.
SaveToStreamSave the component to Dst stream.

Fields

NameTypeDescription
Tagintptr_t