    

 ## On this page

  

 

 # ComputeMinProbability&lt; TYPE &gt; Class Template Reference

 Last update: 16.07.2025 

a struct which collects settings for *[ComputeMinProbability](class_compute_min_probability.xhtml "a struct which collects settings for ComputeMinProbability ")* [More...](class_compute_min_probability.xhtml#details)

## <a name="pub-types"></a>Public Types

typedef boost::function&lt; DataObject::ptr\_type([Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b), [DataObjectVector](class_data_object_vector.xhtml) samples)&gt; [TAlgorithmFunction](class_compute_single_object_per_sample.xhtml#ac597f6cab052d215247719908ce3cb0b) defines a function object [More...](#ac597f6cab052d215247719908ce3cb0b)  
 ## <a name="pub-methods"></a>Public Member Functions

 [check](class_compute_single_object_per_sample.xhtml#a47c34ec1e578c2ce27cf1c5fcd0d1704) ([Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b)) checks the settings on plausibility It throws an exception if there is a problem with the settings. Important: It tries to find out all problems with these settings and then exits the routine. [More...](#a47c34ec1e578c2ce27cf1c5fcd0d1704)  
  [compute](class_compute_single_object_per_sample.xhtml#a919d852c00f29d479c628f0dc1a8387c) ([Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b), [DataObjectVector](class_data_object_vector.xhtml) [data](class_compute_single_object_per_sample.xhtml#aff21fffab499ea652443206d66e1a9bb), string new\_quantity\_ident, string [new\_design\_ident](class_compute_single_object_per_sample.xhtml#aef951e72e1c034e5e2c484edf1b7f5a8)) performs the action for a single set of samples [More...](#a919d852c00f29d479c628f0dc1a8387c)  
  [compute](class_compute_single_object_per_sample.xhtml#ab08e112d95fe611e7eb25491c354d115) ([Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b)) performs the action using the defined settings. [More...](#ab08e112d95fe611e7eb25491c354d115)  
 <a id="ae6b46e497ddd2cdcd4bcdbfb8b585f80"></a> [ComputeMinProbability](class_compute_min_probability.xhtml#ae6b46e497ddd2cdcd4bcdbfb8b585f80) () default constructor   
  [ComputeMinProbability](class_compute_min_probability.xhtml#a4f2a0026c9824ba5cb71ecef69d3437f) ([DataObjectContainer](class_data_object_container.xhtml) the\_data) constructor which sets suitable defaults for all members [More...](#a4f2a0026c9824ba5cb71ecef69d3437f)  
 ## <a name="pub-attribs"></a>Public Attributes

<a id="aff21fffab499ea652443206d66e1a9bb"></a>[DataObjectContainer](class_data_object_container.xhtml) [data](class_compute_single_object_per_sample.xhtml#aff21fffab499ea652443206d66e1a9bb) the data set to be analyzed   
 <a id="aef951e72e1c034e5e2c484edf1b7f5a8"></a>string [new\_design\_ident](class_compute_single_object_per_sample.xhtml#aef951e72e1c034e5e2c484edf1b7f5a8) the design ident of the new object   
 <a id="a30b1bcf63b9bdc707fea30bd96d70447"></a>[DataObjectContainer::string\_vector\_type](class_data_object_container.xhtml#ac293ea0e5c280f69a497ea20f20c60b9) [new\_quantity\_idents](class_compute_single_object_per_sample.xhtml#a30b1bcf63b9bdc707fea30bd96d70447) the new idents for each quantity. The dimension and index space must fit the one of *quantity\_idents*   
 <a id="ade25e60bd85c8b4abd4f5b416cae0eb9"></a>bool [overwrite\_existing](class_compute_single_object_per_sample.xhtml#ade25e60bd85c8b4abd4f5b416cae0eb9) is true if already existing output data objects will be replaced. In this case, also all depending objects of the already existing one will be deleted.   
 <a id="aced57c746ae1d69d2fd56872fa1768bf"></a>[DataObjectContainer::string\_vector\_type](class_data_object_container.xhtml#ac293ea0e5c280f69a497ea20f20c60b9) [quantity\_idents](class_compute_single_object_per_sample.xhtml#aced57c746ae1d69d2fd56872fa1768bf) the quantities to be analyzed. If a quantity ident does not exist in *data*, no error appears.   
 <a id="details" name="details"></a>## Detailed Description

### template&lt;dataobject\_types TYPE&gt;  
class ComputeMinProbability&lt; TYPE &gt;

a struct which collects settings for *[ComputeMinProbability](class_compute_min_probability.xhtml "a struct which collects settings for ComputeMinProbability ")*

Template Parameters TYPEthe field data type 

## Member Typedef Documentation

<a id="ac597f6cab052d215247719908ce3cb0b"></a>## [◆ ](#ac597f6cab052d215247719908ce3cb0b)TAlgorithmFunction

 typedef boost::function&lt;DataObject::ptr\_type( [Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b), [DataObjectVector](class_data_object_vector.xhtml) samples)&gt; [TAlgorithmFunction](class_compute_single_object_per_sample.xhtml#ac597f6cab052d215247719908ce3cb0b)  inherited 

defines a function object

Parameters databasethe database where the data refer to samplesthe vector of samples to which the function is applied to. Returnsthe result of the operation 



## Constructor &amp; Destructor Documentation

<a id="a4f2a0026c9824ba5cb71ecef69d3437f"></a>## [◆ ](#a4f2a0026c9824ba5cb71ecef69d3437f)ComputeMinProbability()

 [ComputeMinProbability](class_compute_min_probability.xhtml)  ( [DataObjectContainer](class_data_object_container.xhtml)  *the\_data*) 

constructor which sets suitable defaults for all members

Parameters the\_datathe subset of field data to be token as input. All quantity idents are extracted. Then for each quantity a new result object will be created with user specific design ident. 



## Member Function Documentation

<a id="a47c34ec1e578c2ce27cf1c5fcd0d1704"></a>## [◆ ](#a47c34ec1e578c2ce27cf1c5fcd0d1704)check()

 check  ( [Structure](class_structure.xhtml)  *database*)   inherited 

checks the settings on plausibility It throws an exception if there is a problem with the settings. Important: It tries to find out all problems with these settings and then exits the routine.

Parameters databasethe SoS structure 



<a id="a919d852c00f29d479c628f0dc1a8387c"></a>## [◆ ](#a919d852c00f29d479c628f0dc1a8387c)compute() \[1/2\]

 compute  ( [Structure](class_structure.xhtml)  *database*,    [DataObjectVector](class_data_object_vector.xhtml)  *data*,    string  *new\_quantity\_ident*,    string  *new\_design\_ident*   )   inherited 

performs the action for a single set of samples

Parameters databasethe output object is to be inserted in this object dataa vector of samples new\_quantity\_identthe quantity ident of the new object new\_design\_identthe design ident of the new object The output object is inactive. 



<a id="ab08e112d95fe611e7eb25491c354d115"></a>## [◆ ](#ab08e112d95fe611e7eb25491c354d115)compute() \[2/2\]

 compute  ( [Structure](class_structure.xhtml)  *database*)   inherited 

performs the action using the defined settings.

Parameters databasethe output object where new objects are added to