Class SigComp11ChineseLoader
DataSetLoader for the SigComp11Chinese dataset
Inherited Members
Namespace: SigStat.Common.Loaders
Assembly: SigStat.Common.dll
Syntax
public class SigComp11ChineseLoader : DataSetLoader, IDataSetLoader, ILoggerObject
Constructors
| Improve this Doc View SourceSigComp11ChineseLoader(String, Boolean)
Initializes a new instance of the SigComp11ChineseLoader class.
Declaration
public SigComp11ChineseLoader(string databasePath, bool standardFeatures)
Parameters
Type | Name | Description |
---|---|---|
System.String | databasePath | The database path. |
System.Boolean | standardFeatures | if set to |
SigComp11ChineseLoader(String, Boolean, Predicate<Signer>)
Initializes a new instance of the SigComp11ChineseLoader class with specified database.
Declaration
public SigComp11ChineseLoader(string databasePath, bool standardFeatures, Predicate<Signer> signerFilter = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | databasePath | Represents the path, to load the signatures from. It supports two basic approaches: |
System.Boolean | standardFeatures | Convert loaded data to standard Features. |
Predicate<Signer> | signerFilter | Sets the SignerFilter property |
Properties
| Improve this Doc View SourceDatabasePath
Gets or sets the database path.
Declaration
public string DatabasePath { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SamplingFrequency
Sampling Frequency of this database
Declaration
public override int SamplingFrequency { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Overrides
| Improve this Doc View SourceSignerFilter
Ignores any signers during the loading, that do not match the predicate
Declaration
public Predicate<Signer> SignerFilter { get; set; }
Property Value
Type | Description |
---|---|
Predicate<Signer> |
StandardFeatures
Gets or sets a value indicating whether features are also loaded as Features
Declaration
public bool StandardFeatures { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceEnumerateSigners(Predicate<Signer>)
Enumerates all Signers that match the signerFilter
.
Declaration
public override IEnumerable<Signer> EnumerateSigners(Predicate<Signer> signerFilter)
Parameters
Type | Name | Description |
---|---|---|
Predicate<Signer> | signerFilter | Filter to specify which Signers to load. Example: (p=>p=="01") |
Returns
Type | Description |
---|---|
IEnumerable<Signer> | Collection of Signers that match the |
Overrides
| Improve this Doc View SourceLoadSignature(Signature, MemoryStream, Boolean)
Loads one signature from specified stream.
Declaration
public static void LoadSignature(Signature signature, MemoryStream stream, bool standardFeatures)
Parameters
Type | Name | Description |
---|---|---|
Signature | signature | Signature to write features to. |
MemoryStream | stream | Stream to read MCYT data from. |
System.Boolean | standardFeatures | Convert loaded data to standard Features. |
Remarks
Based on Mohammad's MCYT reader.