Skip to content

Feature: Add the ability to save internal state #4

Description

@daxbert

The current implementation doesn't allow the internal state to be saved and later restored.

I'm proposing adding the following to TDigest:

  • load function ( takes object typically achieved via JSON.parse )
  • traverse function ( to traverse the centroid binary tree )
  • _insert_centroid ( to allow direct insertion )

"saving" will be accomplished via JSON.stringify ( tdObject )

I'll be forking this repo and doing the above shortly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions