Skip to content
logo
bayespecon
bayespecon.graph.flow_weight_matrices
Initializing search
    pysal/bayespecon
    pysal/bayespecon
    • Home
    • Installation
      • Supported Models
      • Cross Sectional Models
      • Panel Models
      • Nonlinear Models
      • Nonlinear Panel Models
      • Flow Models
      • Panel Flow Models
      • Bayesian Spatial Diagnostics
      • Comparing bayespecon vs spreg
      • Recovering Parameters
      • Replicating Elhorst et al 2024
      • Log-Determinant Methods
      • Sampling Backends
      • API reference
        • Base Classes
        • Cross Sectional Spatial Models
        • Panel Spatial Models
        • Panel Spatial Models (Random Effects)
        • Dynamic Panel Spatial Models
        • Non-Linear Spatial Models
        • Panel Spatial Models (Tobit)
        • Flow Models
        • Bayesian Diagnostics
        • Log-Determinant Methods
        • Data Generating Processes
        • Graph Utilities
          • bayespecon.graph.FlowDesignMatrix
          • bayespecon.graph.flow_design_matrix
          • bayespecon.graph.flow_design_matrix_with_orig
          • bayespecon.graph.flow_weight_matrices
            • F bayespecon.graph.flow_weight_matrices
              • Parameters
                • p G
              • Returns
              • Return type
          • bayespecon.graph.destination_weights
          • bayespecon.graph.origin_weights
          • bayespecon.graph.network_weights
      • References
      • GitHub
      • Changelog
    • F bayespecon.graph.flow_weight_matrices
      • Parameters
        • p G
      • Returns
      • Return type

    bayespecon.graph.flow_weight_matrices¶

    bayespecon.graph.flow_weight_matrices(G)[source]¶

    Build all three N×N flow weight matrices from a single Graph.

    Parameters:¶
    G¶

    Row-standardised libpysal.graph.Graph of shape n×n.

    Returns:¶

    Dictionary with keys "destination", "origin", "network".

    Return type:¶

    dict[str, scipy.sparse.csr_matrix]

    © Copyright 2018-, pysal developers.
    Created using Sphinx 8.2.3. and Sphinx-Immaterial