Join the newly launched Discord
community for real-time discussions, peer support, and direct interaction with the Meridian team!
Module: meridian.model.knots
Stay organized with collections
Save and categorize content based on your preferences.
Auxiliary functions for knots calculations.
Classes
class KnotInfo
: Contains the number of knots, knot locations, and weights.
Functions
get_knot_info(...)
: Returns the number of knots, knot locations, and weights.
l1_distance_weights(...)
: Computes weights at knots for every time period.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-05 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-05 UTC."],[[["\u003cp\u003eThis webpage provides auxiliary functions for calculating knots, including the number, locations, and weights of knots.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eKnotInfo\u003c/code\u003e class stores the number of knots, their locations, and associated weights.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eget_knot_info\u003c/code\u003e function is used to retrieve information about the knots, including their quantity, locations, and weights.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003el1_distance_weights\u003c/code\u003e function calculates the weights at each knot for every defined time period.\u003c/p\u003e\n"]]],["This document details functions and a class for knot calculations. The `KnotInfo` class stores the number, locations, and weights of knots. The `get_knot_info` function returns this knot information. The `l1_distance_weights` function calculates weights at each knot for every time period. These tools are designed for managing and computing data related to knots within a model.\n"],null,["\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/google/meridian/blob/v1.2.0/meridian/model/knots.py) |\n\nAuxiliary functions for knots calculations.\n\nClasses\n\n[`class KnotInfo`](../../meridian/model/knots/KnotInfo.md): Contains the number of knots, knot locations, and weights.\n\nFunctions\n\n[`get_knot_info(...)`](../../meridian/model/knots/get_knot_info.md): Returns the number of knots, knot locations, and weights.\n\n[`l1_distance_weights(...)`](../../meridian/model/knots/l1_distance_weights.md): Computes weights at knots for every time period."]]