Class Svc2004Loader
Loads SVC2004-format database from .zip
Inherited Members
Namespace: SigStat.Common.Loaders
Assembly: SigStat.Common.dll
Syntax
public class Svc2004Loader : DataSetLoader, IDataSetLoader, ILoggerObject
Constructors
| Improve this Doc View SourceSvc2004Loader(String, Boolean)
Initializes a new instance of the Svc2004Loader class with specified database.
Declaration
public Svc2004Loader(string databasePath, bool standardFeatures)
Parameters
Type | Name | Description |
---|---|---|
System.String | databasePath | Represents the path, to load the signatures from. It supports two basic approaches: |
System.Boolean | standardFeatures |
Svc2004Loader(String, Boolean, Predicate<Signer>)
Initializes a new instance of the Svc2004Loader class with specified database.
Declaration
public Svc2004Loader(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 | |
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 the SVC 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, Stream, Boolean)
Loads one signature from specified stream.
Declaration
public static void LoadSignature(Signature signature, Stream stream, bool standardFeatures)
Parameters
Type | Name | Description |
---|---|---|
Signature | signature | Signature to write features to. |
Stream | stream | Stream to read svc2004 data from. |
System.Boolean | standardFeatures | Convert loaded data to standard Features. |
LoadSignature(Signature, String, Boolean)
Loads one signature from specified file path.
Declaration
public void LoadSignature(Signature signature, string path, bool standardFeatures)
Parameters
Type | Name | Description |
---|---|---|
Signature | signature | Signature to write features to. |
System.String | path | Path to a file of format "US.txt" |
System.Boolean | standardFeatures | Convert loaded data to standard Features. |