The ResultDescriptor class describes the results of a run.
More...
|
| ResultDescriptor (int nID, string strName, string strOwner, int nIdx, int nLabel, int nResultCount, byte[] rgResults, int nSrcId, DateTime dt) |
| The ResultDescriptor constructor. More...
|
|
override string | ToString () |
| Creates the string representation of the descriptor. More...
|
|
| BaseDescriptor (int nID, string strName, string strOwner) |
| The BaseDescriptor constructor. More...
|
|
| BaseDescriptor (BaseDescriptor b) |
| The BaseDescriptor constructor. More...
|
|
void | Copy (BaseDescriptor b) |
| Copy another BaseDescriptor into this one. More...
|
|
|
static byte[] | CreateResults (List< Result > rgResults, bool bInvert) |
| The CreateResults function converts the list of (int nLabel, double dfResult) pairs into a array of bytes. More...
|
|
static List< Result > | GetResults (byte[] rgData) |
| Extract the results from the binary data. More...
|
|
static List< Result > | GetResults (BinaryReader br) |
| Extract the results from the binary data. More...
|
|
static byte[] | CreateResults (List< Tuple< SimpleDatum, List< Result > > > rgrgResults) |
| The CreateResults function converts the batch of lists of (int nLabel, double dfResult) pairs into a array of bytes. More...
|
|
static List< Tuple< SimpleDatum, List< Result > > > | GetResults (int nBatchCount, byte[] rgData) |
| Extracts the raw image result batch from the result binary data. More...
|
|
|
int | Index [get] |
| Returns the index of the results. More...
|
|
int | Label [get] |
| Returns the expected label of the result. More...
|
|
int | ResultCount [get] |
| Returns the number of items (classes) participating in the results. More...
|
|
List< KeyValuePair< int, double > > | Results [get] |
| Returns the raw result data that is converted into the full list of (int nLabel, double dfResult) pairs from the run. More...
|
|
int | SourceID [get] |
| Returns the data source ID. More...
|
|
DateTime | TimeStamp [get] |
| Returns the time-stamp of the result. More...
|
|
int | ID [getset] |
| Get/set the database ID of the item. More...
|
|
string | Name [getset] |
| Get/set the name of the item. More...
|
|
string | Owner [getset] |
| Get/set the owner of the item. More...
|
|
The ResultDescriptor class describes the results of a run.
Definition at line 14 of file ResultDescriptor.cs.
◆ ResultDescriptor()
MyCaffe.basecode.descriptors.ResultDescriptor.ResultDescriptor |
( |
int |
nID, |
|
|
string |
strName, |
|
|
string |
strOwner, |
|
|
int |
nIdx, |
|
|
int |
nLabel, |
|
|
int |
nResultCount, |
|
|
byte[] |
rgResults, |
|
|
int |
nSrcId, |
|
|
DateTime |
dt |
|
) |
| |
The ResultDescriptor constructor.
- Parameters
-
nID | Specifies the database ID of the item. |
strName | Specifies the name of the item. |
strOwner | Specifies the identifier of the item's owner. |
nIdx | Specifies the index of the results. |
nLabel | Specifies the expected label of the result. |
nResultCount | Specifies the number of items (classes) participating in the results. |
rgResults | Specifies the raw result data that is converted into the full list of (int nLabel, double dfResult) pairs from the run. |
nSrcId | Specifiesthe data source ID. |
dt | Specifies the Timestamp of the result. |
Definition at line 34 of file ResultDescriptor.cs.
◆ CreateResults() [1/2]
static byte[] MyCaffe.basecode.descriptors.ResultDescriptor.CreateResults |
( |
List< Result > |
rgResults, |
|
|
bool |
bInvert |
|
) |
| |
|
static |
The CreateResults function converts the list of (int nLabel, double dfResult) pairs into a array of bytes.
- Parameters
-
rgResults | Specifies the list of (int nLabel, double dfResult) result data. |
bInvert | Specifies whether or not to invert the value by subtracting it from the maximum value within the result pairs. |
- Returns
- A byte array containing the result data is returned.
Definition at line 98 of file ResultDescriptor.cs.
◆ CreateResults() [2/2]
static byte[] MyCaffe.basecode.descriptors.ResultDescriptor.CreateResults |
( |
List< Tuple< SimpleDatum, List< Result > > > |
rgrgResults | ) |
|
|
static |
The CreateResults function converts the batch of lists of (int nLabel, double dfResult) pairs into a array of bytes.
- Parameters
-
rgrgResults | Specifies the batch of lists of (int nLabel, double dfResult) result data. |
- Returns
- A byte array containing the result data is returned.
Definition at line 182 of file ResultDescriptor.cs.
◆ GetResults() [1/3]
static List< Result > MyCaffe.basecode.descriptors.ResultDescriptor.GetResults |
( |
BinaryReader |
br | ) |
|
|
static |
Extract the results from the binary data.
- Parameters
-
br | Specifies the binary reader. |
- Returns
- The list of results is returned.
Definition at line 159 of file ResultDescriptor.cs.
◆ GetResults() [2/3]
static List< Result > MyCaffe.basecode.descriptors.ResultDescriptor.GetResults |
( |
byte[] |
rgData | ) |
|
|
static |
Extract the results from the binary data.
- Parameters
-
rgData | Specifies the binary data holding the results. |
- Returns
- The list of results is returned.
Definition at line 143 of file ResultDescriptor.cs.
◆ GetResults() [3/3]
static List< Tuple< SimpleDatum, List< Result > > > MyCaffe.basecode.descriptors.ResultDescriptor.GetResults |
( |
int |
nBatchCount, |
|
|
byte[] |
rgData |
|
) |
| |
|
static |
Extracts the raw image result batch from the result binary data.
- Parameters
-
nBatchCount | Specifies the number of results in the batch. |
rgData | Specifies the binary batch data. |
- Returns
- An array of tuples containing SimpleDatum/Result pairs is returned.
Definition at line 208 of file ResultDescriptor.cs.
◆ ToString()
override string MyCaffe.basecode.descriptors.ResultDescriptor.ToString |
( |
| ) |
|
Creates the string representation of the descriptor.
- Returns
- The string representation of the descriptor is returned.
Definition at line 264 of file ResultDescriptor.cs.
◆ Index
int MyCaffe.basecode.descriptors.ResultDescriptor.Index |
|
get |
◆ Label
int MyCaffe.basecode.descriptors.ResultDescriptor.Label |
|
get |
◆ ResultCount
int MyCaffe.basecode.descriptors.ResultDescriptor.ResultCount |
|
get |
Returns the number of items (classes) participating in the results.
Definition at line 63 of file ResultDescriptor.cs.
◆ Results
List<KeyValuePair<int, double> > MyCaffe.basecode.descriptors.ResultDescriptor.Results |
|
get |
Returns the raw result data that is converted into the full list of (int nLabel, double dfResult) pairs from the run.
Definition at line 71 of file ResultDescriptor.cs.
◆ SourceID
int MyCaffe.basecode.descriptors.ResultDescriptor.SourceID |
|
get |
◆ TimeStamp
DateTime MyCaffe.basecode.descriptors.ResultDescriptor.TimeStamp |
|
get |
The documentation for this class was generated from the following file:
- C:/Data/Data/SS_Projects/Intelligence/GitHub/MyCaffe/MyCaffe.basecode/descriptors/ResultDescriptor.cs