Show / Hide Table of Contents

Class PatternMatching3x3

Binary 3x3 pattern matcher with rotating option.

Inheritance
System.Object
PatternMatching3x3
Namespace: SigStat.Common.Algorithms
Assembly: SigStat.Common.dll
Syntax
public class PatternMatching3x3 : object

Constructors

| Improve this Doc View Source

PatternMatching3x3(Nullable<Boolean>[,])

Initializes a new instance of the PatternMatching3x3 class with given pattern.

Declaration
public PatternMatching3x3(bool? [, ] pattern)
Parameters
Type Name Description
System.Nullable<System.Boolean>[,] pattern

3x3 pattern. null: don't care.

Methods

| Improve this Doc View Source

Match(Boolean[,])

Match the 3x3 input with the 3x3 pattern.

Declaration
public bool Match(bool[, ] input)
Parameters
Type Name Description
System.Boolean[,] input
Returns
Type Description
System.Boolean

True if the pattern matches.

| Improve this Doc View Source

RotMatch(Boolean[,])

Match the 3x3 input with the 3x3 pattern from all 4 directions.

Declaration
public bool RotMatch(bool[, ] input)
Parameters
Type Name Description
System.Boolean[,] input
Returns
Type Description
System.Boolean

True if the pattern matches from at least one direction.

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