Skip to content

Provide a helper function to scale the matrix to have a dominant eigenvalue of 1.0 #225

@BlackEdder

Description

@BlackEdder

Scaling the contact matrix to have a dominant eigenvalue of 1 is a bit tricky to do by hand, but all the code to do it is already part of the package, so instead of throwing an error:

Error in finalsize::final_size(r0 = 1.5, combine_m, demo, susceptibility,  : 
  Error: contact matrix must have a maximum real eigenvalue of 1.0

it would be nice if the package could provide a helper function to do that for you. The helper function should only need the current contact matrix and the population vector.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions