Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
SampleAccumulator Class Reference
+ Collaboration diagram for SampleAccumulator:

Public Member Functions

 add ($str, $count, $weight=1)
 
 updateScores ()
 
 getMergedSamples ()
 
 getCandidate ($minConfidence=0)
 
 dump ($merged=true)
 

Data Fields

 $samples = array()
 

Protected Member Functions

 sortByScore (&$samples)
 

Detailed Description

Definition at line 24 of file Class.Dcp_Utils_CSVFormatDetector.php.

Member Function Documentation

add (   $str,
  $count,
  $weight = 1 
)

Definition at line 31 of file Class.Dcp_Utils_CSVFormatDetector.php.

dump (   $merged = true)

Definition at line 102 of file Class.Dcp_Utils_CSVFormatDetector.php.

getCandidate (   $minConfidence = 0)

Return sample with highest confidence score or NULL if there is no samples

Returns
null|Sample

Definition at line 79 of file Class.Dcp_Utils_CSVFormatDetector.php.

+ Here is the call graph for this function:

getMergedSamples ( )

Definition at line 53 of file Class.Dcp_Utils_CSVFormatDetector.php.

+ Here is the call graph for this function:

sortByScore ( $samples)
protected

Definition at line 91 of file Class.Dcp_Utils_CSVFormatDetector.php.

updateScores ( )

Definition at line 36 of file Class.Dcp_Utils_CSVFormatDetector.php.

Field Documentation

$samples = array()

Definition at line 29 of file Class.Dcp_Utils_CSVFormatDetector.php.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen