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§
- Account
Flags - Bit flags for account properties.
- Account
Flags Resolver - The resolver for an archived
AccountFlags - Account
Metadata - Auxiliary structure for account string data.
- Account
Node - A single account node in the accounting network. GPU-aligned to 128 bytes for efficient memory access.
- Account
Node Resolver - The resolver for an archived
AccountNode - Account
Semantics - Semantic flags for account behavior analysis.
- Account
Semantics Resolver - The resolver for an archived
AccountSemantics - Accounting
Network - The complete accounting network graph.
- Aggregated
Flow - Aggregated flow statistics between two accounts. Used for visualization edge weights.
- Archived
Account Flags - An archived
AccountFlags - Archived
Account Node - An archived
AccountNode - Archived
Account Semantics - An archived
AccountSemantics - Archived
Behavioral Baseline - An archived
BehavioralBaseline - Archived
Decimal128 - An archived
Decimal128 - Archived
Flow Flags - An archived
FlowFlags - Archived
Fraud Pattern - An archived
FraudPattern - Archived
Gaap Violation Rule - An archived
GaapViolationRule - Archived
GpuNetwork Header - An archived
GpuNetworkHeader - Archived
Hybrid Timestamp - An archived
HybridTimestamp - Archived
Journal Entry - An archived
JournalEntry - Archived
Journal Entry Flags - An archived
JournalEntryFlags - Archived
Journal Line Item - An archived
JournalLineItem - Archived
Line Item Flags - An archived
LineItemFlags - Archived
Seasonal Pattern - An archived
SeasonalPattern - Archived
Seasonal Pattern Flags - An archived
SeasonalPatternFlags - Archived
Time Series Flags - An archived
TimeSeriesFlags - Archived
Time Series Metrics - An archived
TimeSeriesMetrics - Archived
Transaction Flow - An archived
TransactionFlow - Behavioral
Baseline - Behavioral baseline for anomaly detection. Captures “normal” patterns for an account.
- Behavioral
Baseline Resolver - The resolver for an archived
BehavioralBaseline - Decimal128
- Decimal128 representation for precise monetary amounts. Uses fixed-point arithmetic: value = mantissa * 10^(-scale)
- Decimal128
Resolver - The resolver for an archived
Decimal128 - Flow
Flags - Bit flags for flow properties.
- Flow
Flags Resolver - The resolver for an archived
FlowFlags - Fraud
Pattern - A detected fraud pattern instance.
- Fraud
Pattern Resolver - The resolver for an archived
FraudPattern - Gaap
Violation - A detected GAAP violation instance.
- Gaap
Violation Rule - A GAAP violation rule for detection.
- Gaap
Violation Rule Resolver - The resolver for an archived
GaapViolationRule - GpuNetwork
Header - GPU-compatible network header structure. Used for kernel dispatch.
- GpuNetwork
Header Resolver - The resolver for an archived
GpuNetworkHeader - Graph
Edge - Edge in the graph for traversal algorithms.
- Hybrid
Timestamp - Hybrid Logical Timestamp for causal ordering. Combines physical time with logical counter.
- Hybrid
Timestamp Resolver - The resolver for an archived
HybridTimestamp - Journal
Entry - A journal entry header (ISO 21378:2019 compliant). GPU-aligned to 128 bytes.
- Journal
Entry Flags - Bit flags for journal entry properties.
- Journal
Entry Flags Resolver - The resolver for an archived
JournalEntryFlags - Journal
Entry Resolver - The resolver for an archived
JournalEntry - Journal
Line Item - A single line item in a journal entry. GPU-aligned to 64 bytes.
- Journal
Line Item Resolver - The resolver for an archived
JournalLineItem - Line
Item Flags - Bit flags for line item properties.
- Line
Item Flags Resolver - The resolver for an archived
LineItemFlags - Network
Snapshot - Lightweight snapshot of network state for UI updates.
- Network
Statistics - Statistics about the accounting network.
- Seasonal
Pattern - Detected seasonal pattern for an account.
- Seasonal
Pattern Flags - Flags for seasonal patterns.
- Seasonal
Pattern Flags Resolver - The resolver for an archived
SeasonalPatternFlags - Seasonal
Pattern Resolver - The resolver for an archived
SeasonalPattern - Temporal
Alert - An alert generated by temporal analysis.
- Time
Series Flags - Flags for time series properties.
- Time
Series Flags Resolver - The resolver for an archived
TimeSeriesFlags - Time
Series Metrics - Time series metrics for trend/volatility analysis.
- Time
Series Metrics Resolver - The resolver for an archived
TimeSeriesMetrics - Transaction
Flow - A directed edge in the accounting network representing monetary flow. GPU-aligned to 64 bytes.
- Transaction
Flow Resolver - The resolver for an archived
TransactionFlow
Enums§
- Account
Type - The five fundamental account types in double-entry bookkeeping. Each has a “normal balance” side (debit or credit).
- Account
Type Resolver - The resolver for an archived
AccountType - Archived
Account Type - An archived
AccountType - Archived
Balance Side - An archived
BalanceSide - Archived
Fraud Pattern Type - An archived
FraudPatternType - Archived
Gaap Violation Type - An archived
GaapViolationType - Archived
Line Type - An archived
LineType - Archived
Seasonality Type - An archived
SeasonalityType - Archived
Solving Method - An archived
SolvingMethod - Archived
Time Granularity - An archived
TimeGranularity - Archived
Violation Severity - An archived
ViolationSeverity - Balance
Side - Which side of the accounting equation.
- Balance
Side Resolver - The resolver for an archived
BalanceSide - Booking
Pattern Type - Common booking patterns for pattern recognition and confidence boosting.
- Flow
Direction - Flow direction for analysis.
- Fraud
Pattern Type - Types of fraud patterns that can be detected.
- Fraud
Pattern Type Resolver - The resolver for an archived
FraudPatternType - Gaap
Violation Type - Types of GAAP violations.
- Gaap
Violation Type Resolver - The resolver for an archived
GaapViolationType - Line
Type - Line type: Debit or Credit.
- Line
Type Resolver - The resolver for an archived
LineType - Seasonality
Type - Type of seasonality detected.
- Seasonality
Type Resolver - The resolver for an archived
SeasonalityType - Solving
Method - The transformation method used to convert a journal entry to flows. Based on Ivertowski et al. (2024) methodology.
- Solving
Method Resolver - The resolver for an archived
SolvingMethod - Temporal
Alert Type - Types of temporal alerts.
- Time
Granularity - Time granularity for analysis.
- Time
Granularity Resolver - The resolver for an archived
TimeGranularity - Violation
Severity - GAAP violation severity levels.
- Violation
Severity Resolver - 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.