LogicBlox 4 Reference Manual
ContentsSearch
loading table of contents...
  • About This Manual
  • I. Installing and Running LogicBlox
    • 1. Obtaining and Installing LogicBlox
      • 1.1. Install LogicBlox Natively (64-bit Linux or Mac OSX 10.10+)
        • 1.1.1. System requirements
        • 1.1.2. Installation steps
      • 1.2. Install LogicBlox Using Vagrant (Mac, Linux, Windows)
        • 1.2.1. System requirements
        • 1.2.2. Installation steps
        • 1.2.3. Accessing Logs and Configuration
        • 1.2.4. Accessing LB Web
        • 1.2.5. Vagrant tips
    • 2. Starting and Stopping the LogicBlox Services
  • II. LogiQL
    • 3. Introduction
    • 4. Lexical Properties
      • 4.1. Identifiers
      • 4.2. Literals
        • 4.2.1. Integer Literals
        • 4.2.2. int128 Literals
        • 4.2.3. Decimal Fixed-Point Literals
        • 4.2.4. Binary Floating-Point Literals
        • 4.2.5. Boolean Literals
        • 4.2.6. String Literals
        • 4.2.7. Predicate Literals
      • 4.3. Operators
      • 4.4. Keywords
      • 4.5. White space and comments
    • 5. Grammar
      • 5.1. Major Grammatical Categories
      • 5.2. The Complete Grammar
    • 6. Primitive Types
      • 6.1. string
      • 6.2. int
      • 6.3. float
      • 6.4. decimal
      • 6.5. datetime
      • 6.6. boolean
      • 6.7. int128
    • 7. Built-in Operations
      • 7.1. Comparisons
        • 7.1.1. Comparison Operations
        • 7.1.2. Comparison Functions
        • 7.1.3. Comparison of strings according to locale
        • 7.1.4. Condition Function
      • 7.2. Arithmetic Operators
        • 7.2.1. +
        • 7.2.2. *
        • 7.2.3. -
        • 7.2.4. /
      • 7.3. Arithmetic Functions
        • 7.3.1. decimal:int:multiply
        • 7.3.2. float:arccos
        • 7.3.3. float:arcsin
        • 7.3.4. float:arctan
        • 7.3.5. float:exp
        • 7.3.6. float:ln, float:log, float:log10
        • 7.3.7. float:pow
        • 7.3.8. float:sqrt
        • 7.3.9. float:tan
        • 7.3.10. int:decimal:multiply
        • 7.3.11. int:mod
        • 7.3.12. T:abs
        • 7.3.13. T:add
        • 7.3.14. T:divide
        • 7.3.15. T:max
        • 7.3.16. T:min
        • 7.3.17. T:multiply
        • 7.3.18. T:negate
        • 7.3.19. T:range (arithmetic sequences)
        • 7.3.20. T:subtract
      • 7.4. Rounding Functions
        • 7.4.1. Rounding Functions for Decimal Fixed-Point
          • 7.4.1.. decimal:ceil
          • 7.4.1.. decimal:floor
          • 7.4.1.. decimal:round
          • 7.4.1.. decimal:round2
          • 7.4.1.. decimal:roundHalf*
        • 7.4.2. Rounding Functions for Binary Floating-Point
          • 7.4.2.. float:ceil
          • 7.4.2.. float:floor
          • 7.4.2.. float:round
          • 7.4.2.. float:roundHalfUp
      • 7.5. Integer Bit Manipulation Functions
        • 7.5.1. int:bit_not
        • 7.5.2. int:bit_and
        • 7.5.3. int:bit_or
        • 7.5.4. int:bit_xor
        • 7.5.5. int:bit_lshift
        • 7.5.6. int:bit_rshift
        • 7.5.7. int:bit_rshiftse
      • 7.6. String Operations
        • 7.6.1. string:add
        • 7.6.2. string:alpha_num / ustring:alpha_num
        • 7.6.3. string:at / ustring:at
        • 7.6.4. string:hash
        • 7.6.5. string:length / ustring:length
        • 7.6.6. string:like / string:notlike / ustring:like / ustring:notlike
        • 7.6.7. string:lower / ustring:lower
        • 7.6.8. string:match / ustring:match
        • 7.6.9. string:matches / ustring:matches
        • 7.6.10. string:quote
        • 7.6.11. string:quote_excel
        • 7.6.12. string:replace
        • 7.6.13. string:rewrite / ustring:rewrite
        • 7.6.14. string:split / ustring:split
        • 7.6.15. string:substring / ustring:substring
        • 7.6.16. string:T:convert
        • 7.6.17. string:trim
        • 7.6.18. string:unquote
        • 7.6.19. string:unquote_excel
        • 7.6.20. string:upper / ustring:upper
      • 7.7. Boolean Operations
        • 7.7.1. boolean:and
        • 7.7.2. boolean:bitxor
        • 7.7.3. boolean:or
        • 7.7.4. boolean:not
      • 7.8. Date/Time Operations
        • 7.8.1. datetime:{PART} / datetime:{PART}TZ
        • 7.8.2. datetime:add / datetime:subtract
        • 7.8.3. datetime:create / datetime:createTZ
        • 7.8.4. datetime:export / datetime:import
        • 7.8.5. datetime:format
        • 7.8.6. datetime:part / datetime:partTZ
        • 7.8.7. datetime:now
        • 7.8.8. datetime:offset
        • 7.8.9. datetime:parse
        • 7.8.10. datetime:string:convert
        • 7.8.11. string:datetime:convert
      • 7.9. Conversions
        • 7.9.1. X:Y:convert
        • 7.9.2. blox:lang:toX
        • 7.9.3. X:Y:eq
      • 7.10. Currency
        • 7.10.1. float:currency:string
      • 7.11. Unique Identifiers
        • 7.11.1. uid<<>>
      • 7.12. Transaction Identifier
        • 7.12.1. transaction:id[]
    • 8. Predicates
      • 8.1. Predicate Declaration
      • 8.2. Functional Predicates
        • 8.2.1. Single-valued functional predicates
        • 8.2.2. Multi-valued functional predicates
        • 8.2.3. One-to-one functional predicates
      • 8.3. Entity Predicates
        • 8.3.1. Constructor Predicates
          • 8.3.1.. Structuring Entity Predicates
        • 8.3.2. Reference-Mode Predicates
          • 8.3.2.. Auto-Numbered Refmode Predicates
        • 8.3.3. Subtyping
      • 8.4. Constructor predicates
      • 8.5. Reference mode (refmode) predicates
      • 8.6. Foreign Predicates
      • 8.7. File Predicates
      • 8.8. Derivation Types
      • 8.9. Ordered Predicates
      • 8.10. Local predicates
      • 8.11. External Diff Predicates
      • 8.12. Predicate Properties
    • 9. Expressions
      • 9.1. Literals
      • 9.2. Variables
        • 9.2.1. The concept of "a variable"
        • 9.2.2. Bound variables and their instantiations
      • 9.3. Arithmetic Operations
      • 9.4. Function applications
      • 9.5. Parenthesized expressions
    • 10. Formulas
      • 10.1. Atoms
        • 10.1.1. Atoms as facts
        • 10.1.2. Atoms in heads of rules
        • 10.1.3. Atoms in bodies of rules
        • 10.1.4. Functional atoms
        • 10.1.5. External diff atoms
      • 10.2. Comparisons
        • 10.2.1. Chained Comparison Formulas
      • 10.3. Complex Formulas
        • 10.3.1. Conjunction and Disjunction
        • 10.3.2. Negation
        • 10.3.3. Parenthesized Formulas
    • 11. Rules
      • 11.1. Rules and the quantification of variables
      • 11.2. Kinds of rules
      • 11.1. Basics of IDB Rules
        • 11.1.1. Predicate Inference
        • 11.1.2. Incremental Maintenance
      • 11.2. Value-constructing Rules
      • 11.3. Derived-only Rules
      • 11.4. Putting it all together: general recursion
    • 12. Aggregations
      • 12.1. Aggregation specifiers
    • 13. Sorting
      • 13.1. seq
      • 13.2. list
        • 13.2.1. Sorting Entities
    • 14. Series
      • 14.1. Semantics
      • 14.2. runtotal
        • 14.2.1. Introduction
        • 14.2.2. Detailed usage
        • 14.2.3. Detailed Usage for Reset functionality
      • 14.3. rndnum
    • 15. Linear recursion
      • 15.1. Basic concepts
      • 15.2. Entity keys, grouping
      • 15.3. Additional features
      • 15.4. Caveats
    • 16. Constraints
      • 16.1. Syntax and Interpretation
      • 16.2. Common Forms of Constraints
      • 16.3. Constraints as Predicate Declarations
    • 17. Typing
      • 17.1. Predicate Type Inference
      • 17.2. Type checking
    • 18. Default Values
      • 18.1. Net Sales Example
      • 18.2. Disjunctive Solution
      • 18.3. Default Value Solution
      • 18.4. Storage and Performance Implications
      • 18.5. Consistent Default Values
      • 18.6. Data Updates
      • 18.7. Caveats
    • 19. Transaction Logic
      • 19.1. Preliminaries
        • 19.1.1. The lb tool
        • 19.1.2. Workspaces
        • 19.1.3. Blocks
        • 19.1.4. Loading and executing logic
        • 19.1.5. The notion of "lifetime"
        • 19.1.6. Inactive Blocks
      • 19.2. Delta logic
        • 19.2.1. Direct manipulation of EDB predicates
          • 19.2.1.. Deletion of tuples from a functional predicate
          • 19.2.1.. Deletion of tuples from an entity predicate
        • 19.2.2. Delta rules
          • 19.2.2.. Installed delta rules
        • 19.2.3. Insertions vs. deletions
        • 19.2.4. Delta logic is more imperative than logical
      • 19.3. Events
        • 19.3.1. Pulse predicates
          • 19.3.1.. Internal use of pulse predicates
        • 19.3.2. Event Rules
      • 19.4. Stages
        • 19.4.1. Maintenance
        • 19.4.2. The Six Stages
        • 19.4.3. Order of execution
        • 19.4.4. Stage suffixes
          • 19.4.4.. Stage suffixes in auxiliary internal predicates
        • 19.4.5. Ghost Entity Check
        • 19.4.6. Frame rules
          • 19.4.6.. An example
          • 19.4.6.. Details
    • 20. Hierarchical Syntax
    • 21. Modules
      • 21.1. ConcreteBlox
        • 21.1.1. Writing your very first concrete block project
        • 21.1.2. Names
        • 21.1.3. Name trees
        • 21.1.4. Aliasing
        • 21.1.5. Name resolution
        • 21.1.6. Block stage and lifetime
    • 22. Hierarchical Import/Export
      • 22.1. Using Hierarchical Import/Export
        • 22.1.1. Defining A Protocol Buffer Message Specification
        • 22.1.2. Importing the Protocol Message Specification
        • 22.1.3. Exchanging Data Between a Message and a Workspace
        • 22.1.4. Exporting/Importing a Message
          • Export
          • Import
      • 22.2. Set semantics for repeated fields
  • III. Projects
    • 23. LogiQL Project
      • 23.1. Project Structure
      • 23.2. Compiling a Project
      • 23.3. Installing a Project
  • IV. Web Services
    • 24. Introduction
    • 25. Configuration
      • 25.1. Service Metadata
    • 26. Protobuf and Global Protobuf Services
      • 26.1. Implementing ProtoBuf/JSON Services
        • 26.1.1. Implementing services in inactive blocks
        • 26.1.2. Writing Automated Tests using Python
      • 26.2. Implementing Global ProtoBuf/JSON Services
    • 27. Data Exchange Services
      • 27.1. Configuring Tabular Data Exchange Services
        • 27.1.1. File Definition
          • Format validations
          • Optional Columns
          • File Modes
        • 27.1.2. File Binding
          • Transform Functions
          • Predicate binding helpers
        • 27.1.3. File Row Offsets
        • 27.1.4. Service Configuration
        • 27.1.5. Import and Export
          • Invalid Records
            • Causes
            • Accessing via HTTP
            • Partial Imports and Aborting Transactions
      • 27.2. Dynamic Tabular Data Exchange Services
        • 27.2.1. Building FileBinding Messages
    • 28. Implementing Custom Services
      • 28.1. Custom ProtoBuf Services
        • 28.1.1. General Custom ProtoBuf Services
        • 28.1.2. ProtoBuf Services using ConnectBlox
    • 29. Asynchronous Service calls
      • 29.1. Asynchronous call return codes
    • 30. Measure Service
      • 30.1. Concepts
        • 30.1.1. Levels, dimensions, and intersections
        • 30.1.2. Measures
      • 30.2. Measure Expression Grammar
    • 31. Proxy Services
    • 32. Extensions
      • 32.1. Email Service
        • 32.1.1. Service configuration via SMTP and SES
      • 32.2. Password Management
        • 32.2.1. Change Password
          • Service Configuration
          • Service Parameters
        • 32.2.2. Reset Password
          • Service Configuration
          • Service Parameters
      • 32.3. ConnectBlox Services
        • 32.3.1. Configuring Services
        • 32.3.2. Services Protobuf Schema
        • 32.3.3. Services Reference
  • V. Tools
    • 33. LogicBlox Command Reference
      • 33.1. Database Services Management
        • 33.1.1. lb services
          • Syntax
          • Description
          • Optional Arguments
          • Commands
        • 33.1.2. lb services print
          • Syntax
          • Description
          • Optional Arguments
        • 33.1.3. lb services processes
          • Syntax
          • Description
          • Optional Arguments
        • 33.1.4. lb services restart
          • Syntax
          • Description
          • Optional Arguments
        • 33.1.5. lb services start
          • Syntax
          • Description
          • Optional Arguments
        • 33.1.6. lb services status
          • Syntax
          • Description
          • Optional Arguments
        • 33.1.7. lb services stop
          • Syntax
          • Description
          • Optional Arguments
      • 33.2. Workspace Commands
        • 33.2.1. lb addblock
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.2. lb addlib
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.3. lb addproject
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.4. lb aborttransaction
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.5. lb branch
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.6. lb branches
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.7. lb copy-remote
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.8. lb compileblock
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.9. lb create
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.10. lb delete
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.11. lb delete-branch
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.12. lb exec
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.13. lb execblock
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.14. lb export-protobuf
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.15. lb export-protobuf-schema
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.16. lb filepath
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.17. lb import-protobuf
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.18. lb import-protobuf-schema
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.19. lb import-xml
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.20. lb import-xml-schema
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.21. lb info
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.22. lb list-blocks
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.23. lb list
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.24. lb popcount
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.25. lb predinfo
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.26. lb print-block
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.27. lb print-rules
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.28. lb print
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.29. lb query
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.30. lb raw
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.31. lb removeblock
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.32. lb status
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.33. lb version
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.2.34. lb workspaces
          • Syntax
          • Description
          • Optional Arguments
      • 33.3. Replication
        • 33.3.1. lb promote-mirror
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.3.2. lb start-mirror
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.3.3. lb stop-mirror
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
      • 33.4. Unit Testing
        • 33.4.1. lb unit
          • Syntax
          • Description
          • Optional Arguments
      • 33.5. Other Commands
        • 33.5.1. lb batch-script
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.5.2. lb compile
          • Syntax
          • Description
          • Optional Arguments
          • Compile Commands
        • 33.5.3. lb compile file
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.5.4. lb compile project
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.5.5. lb compiler-server
          • Syntax
          • Description
          • Optional Arguments
          • Daemon Commands
        • 33.5.6. lb compiler-server start
          • Syntax
          • Description
          • Optional Arguments
        • 33.5.7. lb compiler-server status
          • Syntax
          • Description
          • Optional Arguments
        • 33.5.8. lb compiler-server stop
          • Syntax
          • Description
          • Optional Arguments
        • 33.5.9. lb config
          • Syntax
          • Description
          • Optional Arguments
        • 33.5.10. lb disassemble
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.5.11. lb export-workspace
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.5.12. lb import-workspace
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.5.13. lb insert-log-message
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.5.14. lb libraries
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.5.15. lb measure-service
          • Syntax
          • Description
        • 33.5.16. lb translate
          • Syntax
          • Description
          • Optional Arguments
        • 33.5.17. lb server
          • Syntax
          • Description
          • Optional Arguments
          • Server Commands
        • 33.5.18. lb server loglevel
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.5.19. lb server start
          • Syntax
          • Description
          • Optional Arguments
        • 33.5.20. lb server status
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
        • 33.5.21. lb server stop
          • Syntax
          • Description
          • Optional Arguments
        • 33.5.22. lb state-dump
          • Syntax
          • Description
          • Positional Arguments
          • Optional Arguments
    • 34. Logging
    • 35. Testing
    • 36. The LB Configuration Tool
      • 36.1. Creating config.py
        • 36.1.1. lbconfig_package
        • 36.1.2. depends_on
        • 36.1.3. lb_library
        • 36.1.4. check_lb_workspace
      • 36.2. Extending the LB configuration tool
    • 37. Workbooks
      • 37.1. Overview
        • 37.1.1. Partitioning
          • Unfiltered Hierarchies
        • 37.1.2. BRANCH and CLONE methods
        • 37.1.3. Merge method
        • 37.1.4. Setup
      • 37.2. Creating and deleting workbooks
        • 37.2.1. Creating
        • 37.2.2. Deleting
        • 37.2.3. Querying workbooks
        • 37.2.4. Command Line
      • 37.3. Templates
        • 37.3.1. Creating a template
          • JSON Example
          • Command Line
        • 37.3.2. Instantiation
          • Example JSON
          • Command Line
      • 37.4. Using services in workbooks
      • 37.5. Commit and refresh, usage and configuration
        • 37.5.1. Usage
        • 37.5.2. Configuration
        • 37.5.3. default Refresh group
      • 37.6. Authorizing users
        • 37.6.1. Adding, removing users, setting users list
        • 37.6.2. Bulk Users management
        • 37.6.3. Command Line
      • 37.7. Building workbooks in workflows
      • 37.8. Generating template instantiation data with workbook util
        • 37.8.1. Util model
        • 37.8.2. Example of generated template_instantiation entities
        • 37.8.3. Workbook util services
        • 37.8.4. Workflows for template instantiation
        • 37.8.5. Tagged template_instantiation
    • 38. Workflows
      • 38.1. Overview
        • 38.1.1. Principles
      • 38.2. The lb-workflow Workspace
      • 38.3. The lb-workflow Language
        • 38.3.1. Controlling concurrency
    • 39. Batch Execution
      • 39.1. Executing a Batch Specification
      • 39.2. Configuring Batch Execution
      • 39.3. Simple Statements
        • 39.3.1. Echo
        • 39.3.2. CallProto
        • 39.3.3. ImportDelim
        • 39.3.4. ExportDelim
        • 39.3.5. S3Upload
        • 39.3.6. S3Download
        • 39.3.7. Exec
        • 39.3.8. ClearQueue
        • 39.3.9. ListQueue
        • 39.3.10. Noop
        • 39.3.11. Fail
      • 39.4. Composite Statements
        • 39.4.1. StmSeq
        • 39.4.2. StmPar
        • 39.4.3. StmTryCatch
        • 39.4.4. StmTxn
      • 39.5. Writing Protobuf Messages by Hand
    • 40. Extract Example
      • 40.1. Command Overview
      • 40.2. Command Options
      • 40.3. Running the Extracted Example
      • 40.4. Tutorials
        • 40.4.1. Simple Net Sales
          • 40.4.1.. Create a Test Workspace
          • 40.4.1.. Extract Rules and Data
          • 40.4.1.. Running the Extracted Example
        • 40.4.2. Transitive Net Sales
        • 40.4.3. Incremental Data Capture
  • VI. Branching
    • 41. Database Branching
      • 41.1. Special Branches
      • 41.2. Illustration
      • 41.3. Branches in LogiQL Rules
        • 41.3.1. Branch aliases
      • 41.4. Command-line Utilities
        • 41.4.1. Command Examples
      • 41.5. Protobuf Interfaces
        • 41.5.1. Installing the Services
        • 41.5.2. Example
  • VII. Analytics
    • 42. BloxOptimize
      • 42.1. Introduction
      • 42.2. Source Logic
        • 42.2.1. Working Problem
        • 42.2.2. LogiQL versus MIP Terminology
        • 42.2.3. Grouping
        • 42.2.4. The BloxOptimize Source Language: Conventions and Restrictions
          • Variable and Dynamic Predicates
          • LogiQL Types
          • Constraints
          • Other Restrictions
        • 42.2.5. Non-Continuous Values
        • 42.2.6. Naming Constraints
      • 42.3. Intermediate Language
        • 42.3.1. Directives
        • 42.3.2. Syntax for Quantification Domains
        • 42.3.3. ILEs and ILCs
        • 42.3.4. Named Constraints
      • 42.4. Use of BloxOptimize
        • 42.4.1. Getting the preprocessor
        • 42.4.2. Running the preprocessor
          • Modules
        • 42.4.3. Triggering the (re-)optimization
        • 42.4.4. Preprocessor commands
          • bloxopt process
            • Syntax
            • Description
            • Required Arguments
          • bloxopt translate
            • Syntax
            • Description
            • Required Arguments
            • Optional Arguments
        • 42.4.5. Choosing the Back-end Optimizer
        • 42.4.6. Optimizer Options
        • 42.4.7. Advanced Options
    • 43. Mathematical Functions
      • 43.1. Introduction
      • 43.2. Mathematical Functions
        • 43.2.1. Statistical Distribution Functions
          • 43.2.1..
          • Distribution bernoulli
            • Defined Functions
              • lb:stat:bernoulli:cdf
              • lb:stat:bernoulli:chf
              • lb:stat:bernoulli:mean
              • lb:stat:bernoulli:median
              • lb:stat:bernoulli:pdf
              • lb:stat:bernoulli:quantile
              • lb:stat:bernoulli:range
              • lb:stat:bernoulli:std_dev
          • Distribution beta
            • Defined Functions
              • lb:stat:beta:cdf
              • lb:stat:beta:chf
              • lb:stat:beta:mean
              • lb:stat:beta:median
              • lb:stat:beta:pdf
              • lb:stat:beta:quantile
              • lb:stat:beta:range
              • lb:stat:beta:std_dev
          • Distribution binomial
            • Defined Functions
              • lb:stat:binomial:cdf
              • lb:stat:binomial:chf
              • lb:stat:binomial:mean
              • lb:stat:binomial:median
              • lb:stat:binomial:pdf
              • lb:stat:binomial:quantile
              • lb:stat:binomial:range
              • lb:stat:binomial:std_dev
          • Distribution cauchy
            • Defined Functions
              • lb:stat:cauchy:cdf
              • lb:stat:cauchy:chf
              • lb:stat:cauchy:find_location
              • lb:stat:cauchy:find_scale
              • lb:stat:cauchy:mean
              • lb:stat:cauchy:median
              • lb:stat:cauchy:pdf
              • lb:stat:cauchy:quantile
              • lb:stat:cauchy:range
              • lb:stat:cauchy:std_dev
          • Distribution chi_squared
            • Defined Functions
              • lb:stat:chi_squared:cdf
              • lb:stat:chi_squared:chf
              • lb:stat:chi_squared:mean
              • lb:stat:chi_squared:median
              • lb:stat:chi_squared:pdf
              • lb:stat:chi_squared:quantile
              • lb:stat:chi_squared:range
              • lb:stat:chi_squared:std_dev
          • Distribution erlang_distribution
            • Defined Functions
              • lb:stat:erlang_distribution:cdf
              • lb:stat:erlang_distribution:chf
              • lb:stat:erlang_distribution:mean
              • lb:stat:erlang_distribution:median
              • lb:stat:erlang_distribution:pdf
              • lb:stat:erlang_distribution:quantile
              • lb:stat:erlang_distribution:range
              • lb:stat:erlang_distribution:std_dev
          • Distribution extreme_value
            • Defined Functions
              • lb:stat:extreme_value:cdf
              • lb:stat:extreme_value:chf
              • lb:stat:extreme_value:mean
              • lb:stat:extreme_value:median
              • lb:stat:extreme_value:pdf
              • lb:stat:extreme_value:quantile
              • lb:stat:extreme_value:range
              • lb:stat:extreme_value:std_dev
          • Distribution fisher_f
            • Defined Functions
              • lb:stat:fisher_f:cdf
              • lb:stat:fisher_f:chf
              • lb:stat:fisher_f:mean
              • lb:stat:fisher_f:median
              • lb:stat:fisher_f:pdf
              • lb:stat:fisher_f:quantile
              • lb:stat:fisher_f:range
              • lb:stat:fisher_f:std_dev
          • Distribution gamma
            • Defined Functions
              • lb:stat:gamma:cdf
              • lb:stat:gamma:chf
              • lb:stat:gamma:mean
              • lb:stat:gamma:median
              • lb:stat:gamma:pdf
              • lb:stat:gamma:quantile
              • lb:stat:gamma:range
              • lb:stat:gamma:std_dev
          • Distribution geometric
            • Defined Functions
              • lb:stat:geometric:cdf
              • lb:stat:geometric:chf
              • lb:stat:geometric:mean
              • lb:stat:geometric:median
              • lb:stat:geometric:pdf
              • lb:stat:geometric:quantile
              • lb:stat:geometric:range
              • lb:stat:geometric:std_dev
          • Distribution hypergeometric
            • Defined Functions
              • lb:stat:hypergeometric:cdf
              • lb:stat:hypergeometric:chf
              • lb:stat:hypergeometric:mean
              • lb:stat:hypergeometric:median
              • lb:stat:hypergeometric:pdf
              • lb:stat:hypergeometric:quantile
              • lb:stat:hypergeometric:range
              • lb:stat:hypergeometric:std_dev
          • Distribution inverse_gaussian
            • Defined Functions
              • lb:stat:inverse_gaussian:cdf
              • lb:stat:inverse_gaussian:chf
              • lb:stat:inverse_gaussian:mean
              • lb:stat:inverse_gaussian:median
              • lb:stat:inverse_gaussian:pdf
              • lb:stat:inverse_gaussian:quantile
              • lb:stat:inverse_gaussian:range
              • lb:stat:inverse_gaussian:std_dev
          • Distribution laplace
            • Defined Functions
              • lb:stat:laplace:cdf
              • lb:stat:laplace:chf
              • lb:stat:laplace:mean
              • lb:stat:laplace:median
              • lb:stat:laplace:pdf
              • lb:stat:laplace:quantile
              • lb:stat:laplace:range
              • lb:stat:laplace:std_dev
          • Distribution logistic
            • Defined Functions
              • lb:stat:logistic:cdf
              • lb:stat:logistic:chf
              • lb:stat:logistic:find_location
              • lb:stat:logistic:find_scale
              • lb:stat:logistic:mean
              • lb:stat:logistic:median
              • lb:stat:logistic:pdf
              • lb:stat:logistic:quantile
              • lb:stat:logistic:range
              • lb:stat:logistic:std_dev
          • Distribution lognormal
            • Defined Functions
              • lb:stat:lognormal:cdf
              • lb:stat:lognormal:chf
              • lb:stat:lognormal:find_location
              • lb:stat:lognormal:find_scale
              • lb:stat:lognormal:mean
              • lb:stat:lognormal:median
              • lb:stat:lognormal:pdf
              • lb:stat:lognormal:quantile
              • lb:stat:lognormal:range
              • lb:stat:lognormal:std_dev
          • Distribution negative_binomial
            • Defined Functions
              • lb:stat:negative_binomial:cdf
              • lb:stat:negative_binomial:chf
              • lb:stat:negative_binomial:mean
              • lb:stat:negative_binomial:median
              • lb:stat:negative_binomial:pdf
              • lb:stat:negative_binomial:quantile
              • lb:stat:negative_binomial:range
              • lb:stat:negative_binomial:std_dev
          • Distribution normal
            • Defined Functions
              • lb:stat:normal:cdf
              • lb:stat:normal:chf
              • lb:stat:normal:find_location
              • lb:stat:normal:find_scale
              • lb:stat:normal:mean
              • lb:stat:normal:median
              • lb:stat:normal:pdf
              • lb:stat:normal:quantile
              • lb:stat:normal:range
              • lb:stat:normal:std_dev
          • Distribution pareto
            • Defined Functions
              • lb:stat:pareto:cdf
              • lb:stat:pareto:chf
              • lb:stat:pareto:mean
              • lb:stat:pareto:median
              • lb:stat:pareto:pdf
              • lb:stat:pareto:quantile
              • lb:stat:pareto:range
              • lb:stat:pareto:std_dev
          • Distribution poisson
            • Defined Functions
              • lb:stat:poisson:cdf
              • lb:stat:poisson:chf
              • lb:stat:poisson:mean
              • lb:stat:poisson:median
              • lb:stat:poisson:pdf
              • lb:stat:poisson:quantile
              • lb:stat:poisson:range
              • lb:stat:poisson:std_dev
          • Distribution rayleigh
            • Defined Functions
              • lb:stat:rayleigh:cdf
              • lb:stat:rayleigh:chf
              • lb:stat:rayleigh:mean
              • lb:stat:rayleigh:median
              • lb:stat:rayleigh:pdf
              • lb:stat:rayleigh:quantile
              • lb:stat:rayleigh:range
              • lb:stat:rayleigh:std_dev
          • Distribution skew_normal
            • Defined Functions
              • lb:stat:skew_normal:cdf
              • lb:stat:skew_normal:chf
              • lb:stat:skew_normal:mean
              • lb:stat:skew_normal:median
              • lb:stat:skew_normal:pdf
              • lb:stat:skew_normal:quantile
              • lb:stat:skew_normal:range
              • lb:stat:skew_normal:std_dev
          • Distribution triangular
            • Defined Functions
              • lb:stat:triangular:cdf
              • lb:stat:triangular:chf
              • lb:stat:triangular:mean
              • lb:stat:triangular:median
              • lb:stat:triangular:pdf
              • lb:stat:triangular:quantile
              • lb:stat:triangular:range
              • lb:stat:triangular:std_dev
          • Distribution weibull
            • Defined Functions
              • lb:stat:weibull:cdf
              • lb:stat:weibull:chf
              • lb:stat:weibull:mean
              • lb:stat:weibull:median
              • lb:stat:weibull:pdf
              • lb:stat:weibull:quantile
              • lb:stat:weibull:range
              • lb:stat:weibull:std_dev
        • 43.2.2. Miscellanous Mathematical Functions
          • 43.2.2.. float:lgamma
          • 43.2.2.. float:logistic
          • 43.2.2.. float:erf_inv
          • 43.2.2.. float:sgn
          • 43.2.2.. int:prime
          • 43.2.2.. float:beta
          • 43.2.2.. float:tgamma
          • 43.2.2.. float:ramp
          • 43.2.2.. float:sigmoid
          • 43.2.2.. float:hermite_next
          • 43.2.2.. float:hermite
          • 43.2.2.. float:erf
  • VIII. Appendix
    • A. ConnectBlox
      • A.1. ConnectBlox TCP Transport
    • B. Compiler Errors and Warnings
      • B.1. MULTIPLE_VALUES
      • B.2. EDB_RULE
      • B.3. DIV_ZERO
      • B.4. NO_DECLARATION
      • B.5. CONSTRUCTOR_ILLEGAL_VALUETYPE
      • B.6. SIMILAR_VAR
      • B.7. SUBTYPE_MULTI
      • B.8. DYNAMIC_TYPE_CONSTRAINT
      • B.9. POLYMORPHIC_LITERAL
      • B.10. COMP_UNORDERED
      • B.11. MULTI_ENTITY_CREATION
      • B.12. SEVERITY_INCONSISTENT
      • B.13. Hierarchical syntax
        • B.13.1. HIER_NO_ENCLOSING
        • B.13.2. HIER_HEAD_NOT_ATOM
        • B.13.3. HIER_NO_CANDIDATES
        • B.13.4. HIER_CANDIDATE_NO_TYPE
        • B.13.5. HIER_ARG_TYPE_NOT_KNOWN
        • B.13.6. HIER_UNSUPPORTED_EXPR
        • B.13.7. HIER_AMBIGUOUS_HEAD_BINDING
        • B.13.8. HIER_EXPR_NOT_ENTITY
        • B.13.9. HIER_ATOM_TOO_MANY_SUPPLIED
        • B.13.10. HIER_ATOM_TOO_FEW_SUPPLIED
      • B.14. Delta logic
        • B.14.1. DELTA_UNGUARDED
        • B.14.2. NEGATED_UNGUARDED
      • B.15. Aggregations
        • B.15.1. AGG_PARSE
        • B.15.2. AGG_KEY_OUTPUT
        • B.15.3. AGG_VALUE_NON_OUTPUT
      • B.16. Entities
        • B.16.1. PULSE_ENTITY_IN_DB_LIFETIME
      • B.17. Incremental Evaluation
        • B.17.1. INCR_NONDET
      • B.18. File predicates
        • B.18.1. FILE_PREDICATE_STAGES
        • B.18.2. FILE_PREDICATE_DELTA
        • B.18.3. FILE_PREDICATE_RECURSION
        • B.18.4. FILE_PREDICATE_INACTIVE
      • B.19. Derived-only predicates
        • B.19.1. DERONLY_PULSE
        • B.19.2. DERONLY_RECURSION
    • C. Environment Variables
      • C.1. General Environment Variables
      • C.2. Deployment Environment Variables
      • C.3. Services Environment Variables
    • D. File Formats
      • D.1. Bytecode file format
      • D.2. Summary file format
  • Glossary

Part VIII. Appendix

Table of Contents

A. ConnectBlox
A.1. ConnectBlox TCP Transport
B. Compiler Errors and Warnings
B.1. MULTIPLE_VALUES
B.2. EDB_RULE
B.3. DIV_ZERO
B.4. NO_DECLARATION
B.5. CONSTRUCTOR_ILLEGAL_VALUETYPE
B.6. SIMILAR_VAR
B.7. SUBTYPE_MULTI
B.8. DYNAMIC_TYPE_CONSTRAINT
B.9. POLYMORPHIC_LITERAL
B.10. COMP_UNORDERED
B.11. MULTI_ENTITY_CREATION
B.12. SEVERITY_INCONSISTENT
B.13. Hierarchical syntax
B.14. Delta logic
B.15. Aggregations
B.16. Entities
B.17. Incremental Evaluation
B.18. File predicates
B.19. Derived-only predicates
C. Environment Variables
D. File Formats
D.1. Bytecode file format
D.2. Summary file format
Prev     Next
Chapter 43. Mathematical Functions  Home  Appendix A. ConnectBlox

Copyright © Infor. All rights reserved. Infor Terms & Conditions