probability icon indicating copy to clipboard operation
probability copied to clipboard

rational_quadratic_spline

Open jecampagne opened this issue 3 years ago • 1 comments

Hello, Sorry, I probably ask a simple question:

  • is there a way to understand how the width/height parameters enter in the x_pos/y_pos of the knots.
  • is there a way to get the final x_pos and y_pos of the knots (ie. bin_widths/bin_heights are only an access to the arguments)? Thanks.

jecampagne avatar Sep 16 '22 07:09 jecampagne

range_min + tf.math.cumsum(bin_widths) will give you the knot x locations, similarly range_min + tf.math.cumsum(bin_heights) for the y locs

Brian Patton | Software Engineer | @.***

On Fri, Sep 16, 2022 at 3:18 AM jean-eric @.***> wrote:

Hello, Sorry, I probably ask a simple question:

  • is there a way to understand how the width/height parameters enter in the x_pos/y_pos of the knots.
  • is there a way to get the final x_pos and y_pos of the knots (ie. bin_widths/bin_heights are only an access to the arguments)? Thanks.

— Reply to this email directly, view it on GitHub https://github.com/tensorflow/probability/issues/1620, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFJFSI4FG25XORAWD6SBC6LV6QNMXANCNFSM6AAAAAAQOBZSZU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

brianwa84 avatar Sep 19 '22 14:09 brianwa84