Skip to main content

Module models

Module models 

Source
Expand description

Core data models for accounting network analytics.

These models represent the fundamental structures of double-entry bookkeeping transformed into a graph representation for GPU-accelerated analysis.

Structs§

AccountFlags
Bit flags for account properties.
AccountFlagsResolver
The resolver for an archived AccountFlags
AccountMetadata
Auxiliary structure for account string data.
AccountNode
A single account node in the accounting network. GPU-aligned to 128 bytes for efficient memory access.
AccountNodeResolver
The resolver for an archived AccountNode
AccountSemantics
Semantic flags for account behavior analysis.
AccountSemanticsResolver
The resolver for an archived AccountSemantics
AccountingNetwork
The complete accounting network graph.
AggregatedFlow
Aggregated flow statistics between two accounts. Used for visualization edge weights.
ArchivedAccountFlags
An archived AccountFlags
ArchivedAccountNode
An archived AccountNode
ArchivedAccountSemantics
An archived AccountSemantics
ArchivedBehavioralBaseline
An archived BehavioralBaseline
ArchivedDecimal128
An archived Decimal128
ArchivedFlowFlags
An archived FlowFlags
ArchivedFraudPattern
An archived FraudPattern
ArchivedGaapViolationRule
An archived GaapViolationRule
ArchivedGpuNetworkHeader
An archived GpuNetworkHeader
ArchivedHybridTimestamp
An archived HybridTimestamp
ArchivedJournalEntry
An archived JournalEntry
ArchivedJournalEntryFlags
An archived JournalEntryFlags
ArchivedJournalLineItem
An archived JournalLineItem
ArchivedLineItemFlags
An archived LineItemFlags
ArchivedSeasonalPattern
An archived SeasonalPattern
ArchivedSeasonalPatternFlags
An archived SeasonalPatternFlags
ArchivedTimeSeriesFlags
An archived TimeSeriesFlags
ArchivedTimeSeriesMetrics
An archived TimeSeriesMetrics
ArchivedTransactionFlow
An archived TransactionFlow
BehavioralBaseline
Behavioral baseline for anomaly detection. Captures “normal” patterns for an account.
BehavioralBaselineResolver
The resolver for an archived BehavioralBaseline
Decimal128
Decimal128 representation for precise monetary amounts. Uses fixed-point arithmetic: value = mantissa * 10^(-scale)
Decimal128Resolver
The resolver for an archived Decimal128
FlowFlags
Bit flags for flow properties.
FlowFlagsResolver
The resolver for an archived FlowFlags
FraudPattern
A detected fraud pattern instance.
FraudPatternResolver
The resolver for an archived FraudPattern
GaapViolation
A detected GAAP violation instance.
GaapViolationRule
A GAAP violation rule for detection.
GaapViolationRuleResolver
The resolver for an archived GaapViolationRule
GpuNetworkHeader
GPU-compatible network header structure. Used for kernel dispatch.
GpuNetworkHeaderResolver
The resolver for an archived GpuNetworkHeader
GraphEdge
Edge in the graph for traversal algorithms.
HybridTimestamp
Hybrid Logical Timestamp for causal ordering. Combines physical time with logical counter.
HybridTimestampResolver
The resolver for an archived HybridTimestamp
JournalEntry
A journal entry header (ISO 21378:2019 compliant). GPU-aligned to 128 bytes.
JournalEntryFlags
Bit flags for journal entry properties.
JournalEntryFlagsResolver
The resolver for an archived JournalEntryFlags
JournalEntryResolver
The resolver for an archived JournalEntry
JournalLineItem
A single line item in a journal entry. GPU-aligned to 64 bytes.
JournalLineItemResolver
The resolver for an archived JournalLineItem
LineItemFlags
Bit flags for line item properties.
LineItemFlagsResolver
The resolver for an archived LineItemFlags
NetworkSnapshot
Lightweight snapshot of network state for UI updates.
NetworkStatistics
Statistics about the accounting network.
SeasonalPattern
Detected seasonal pattern for an account.
SeasonalPatternFlags
Flags for seasonal patterns.
SeasonalPatternFlagsResolver
The resolver for an archived SeasonalPatternFlags
SeasonalPatternResolver
The resolver for an archived SeasonalPattern
TemporalAlert
An alert generated by temporal analysis.
TimeSeriesFlags
Flags for time series properties.
TimeSeriesFlagsResolver
The resolver for an archived TimeSeriesFlags
TimeSeriesMetrics
Time series metrics for trend/volatility analysis.
TimeSeriesMetricsResolver
The resolver for an archived TimeSeriesMetrics
TransactionFlow
A directed edge in the accounting network representing monetary flow. GPU-aligned to 64 bytes.
TransactionFlowResolver
The resolver for an archived TransactionFlow

Enums§

AccountType
The five fundamental account types in double-entry bookkeeping. Each has a “normal balance” side (debit or credit).
AccountTypeResolver
The resolver for an archived AccountType
ArchivedAccountType
An archived AccountType
ArchivedBalanceSide
An archived BalanceSide
ArchivedFraudPatternType
An archived FraudPatternType
ArchivedGaapViolationType
An archived GaapViolationType
ArchivedLineType
An archived LineType
ArchivedSeasonalityType
An archived SeasonalityType
ArchivedSolvingMethod
An archived SolvingMethod
ArchivedTimeGranularity
An archived TimeGranularity
ArchivedViolationSeverity
An archived ViolationSeverity
BalanceSide
Which side of the accounting equation.
BalanceSideResolver
The resolver for an archived BalanceSide
BookingPatternType
Common booking patterns for pattern recognition and confidence boosting.
FlowDirection
Flow direction for analysis.
FraudPatternType
Types of fraud patterns that can be detected.
FraudPatternTypeResolver
The resolver for an archived FraudPatternType
GaapViolationType
Types of GAAP violations.
GaapViolationTypeResolver
The resolver for an archived GaapViolationType
LineType
Line type: Debit or Credit.
LineTypeResolver
The resolver for an archived LineType
SeasonalityType
Type of seasonality detected.
SeasonalityTypeResolver
The resolver for an archived SeasonalityType
SolvingMethod
The transformation method used to convert a journal entry to flows. Based on Ivertowski et al. (2024) methodology.
SolvingMethodResolver
The resolver for an archived SolvingMethod
TemporalAlertType
Types of temporal alerts.
TimeGranularity
Time granularity for analysis.
TimeGranularityResolver
The resolver for an archived TimeGranularity
ViolationSeverity
GAAP violation severity levels.
ViolationSeverityResolver
The resolver for an archived ViolationSeverity

Constants§

BENFORD_CHI_SQ_CRITICAL
Critical value for chi-squared with 8 degrees of freedom (p=0.05).
BENFORD_EXPECTED
Benford’s Law expected first-digit distribution.

Functions§

benford_chi_squared
Calculate chi-squared statistic for Benford’s Law compliance.
is_benford_violation
Check if a chi-squared value indicates Benford violation.