Show / Hide Table of Contents

Class Sampler

Takes samples from a set of Signatures by given sampling strategies. Use this to fine-tune the VerifierBenchmark

Inheritance
System.Object
Sampler
EvenNSampler
FirstNSampler
LastNSampler
OddNSampler
TestingSampler
UniversalSampler
Namespace: SigStat.Common
Assembly: SigStat.Common.dll
Syntax
public class Sampler : object

Constructors

| Improve this Doc View Source

Sampler(Func<List<Signature>, List<Signature>>, Func<List<Signature>, List<Signature>>, Func<List<Signature>, List<Signature>>)

Initialize a new instance of the Sampler class by given sampling strategies.

Declaration
public Sampler(Func<List<Signature>, List<Signature>> references, Func<List<Signature>, List<Signature>> genuineTests, Func<List<Signature>, List<Signature>> forgeryTests)
Parameters
Type Name Description
Func<List<Signature>, List<Signature>> references

Strategy to sample genuine signatures to be used for training.

Func<List<Signature>, List<Signature>> genuineTests

Strategy to sample genuine signatures to be used for testing.

Func<List<Signature>, List<Signature>> forgeryTests

Strategy to sample forged signatures to be used for testing.

Properties

| Improve this Doc View Source

ForgeryTestFilter

Declaration
public Func<List<Signature>, List<Signature>> ForgeryTestFilter { get; protected set; }
Property Value
Type Description
Func<List<Signature>, List<Signature>>
| Improve this Doc View Source

GenuineTestFilter

Declaration
public Func<List<Signature>, List<Signature>> GenuineTestFilter { get; protected set; }
Property Value
Type Description
Func<List<Signature>, List<Signature>>
| Improve this Doc View Source

TrainingFilter

Declaration
public Func<List<Signature>, List<Signature>> TrainingFilter { get; protected set; }
Property Value
Type Description
Func<List<Signature>, List<Signature>>

Methods

| Improve this Doc View Source

SampleForgeryTests(List<Signature>)

Samples a batch of forged signatures to test on.

Declaration
public List<Signature> SampleForgeryTests(List<Signature> signatures)
Parameters
Type Name Description
List<Signature> signatures
Returns
Type Description
List<Signature>

Forged signatures to test on.

| Improve this Doc View Source

SampleGenuineTests(List<Signature>)

Samples a batch of genuine test signatures to test on.

Declaration
public List<Signature> SampleGenuineTests(List<Signature> signatures)
Parameters
Type Name Description
List<Signature> signatures
Returns
Type Description
List<Signature>

Genuine signatures to test on.

| Improve this Doc View Source

SampleReferences(List<Signature>)

Samples a batch of genuine reference signatures to train on.

Declaration
public List<Signature> SampleReferences(List<Signature> signatures)
Parameters
Type Name Description
List<Signature> signatures
Returns
Type Description
List<Signature>

Genuine reference signatures to train on.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX