{ "cells": [ { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "# Ray Samplers\n", "\n", "## Overview\n", "\n", "Once we have a set of cameras, we want to cast camera rays associated with each pixel. \n", "\n", "Along these ray we will sample the _field_ and aggregate the samples to predict the pixels value (ie. color). The parameterization of the samples are described [here](./visualize_samples.ipynb) however we must decide where to place these samples along a ray. For this task we will use a [`Sampler`](../../reference/api/model_components/ray_sampler.rst).\n", "\n", "In the ideal world we would compute many dense samples along a ray. Unfortunately, each additional sample adds a computation cost to the system as it needs to be processed by the _field_ which is often a neural network.\n", "\n", "As a result it is common for NeRF methods to use on the order of 100 samples. Therefore, we want to optimize where those samples are placed in the scene.\n", "\n", "For example, if the scene can be bounded by a box and the objects are all similar scales, uniform sampling along the ray may be a good option. On the other hand if the scene is unbounded (potential extending as far as the eye can see) uniform sampling does not make sense as the samples would be very sparse for close objects. In this case a different sampling like _Uniform in Disparity_ may perform better.\n", "\n", "```{image} imgs/samplers_type-light.png\n", ":align: center\n", ":class: only-light\n", "```\n", "\n", "```{image} imgs/samplers_type-dark.png\n", ":align: center\n", ":class: only-dark\n", "```\n", "\n", "### Stratified Sampling\n", "\n", "Most samplers has the option to _stratify_ the samplers. When stratified, each sample is randomly perturbed. \n", "\n", "The magnitude of the pertubation is such that the sample ordering remains consistent and the overall distribution statistics are not changed. Using stratified samples during training generally improves the reconstructions as it help prevent overfitting.\n", "\n", "During inference stratified sampling should be disabled (nerfstudio samplers will do this) as it can cause noisy artifacts when the camera moves.\n", "\n", "```{image} imgs/samplers_stratified-light.png\n", ":align: center\n", ":class: only-light\n", "```\n", "\n", "```{image} imgs/samplers_stratified-dark.png\n", ":align: center\n", ":class: only-dark\n", "```\n", "\n", "### Hierarchical Sampling\n", "\n", "It is important to sample the scene where it has content otherwise the reconstruction quality will be reduced. \n", "\n", "One trick that is often employed in NeRF methods is to do multiple round of sampling. The first round can use a predefined sampler (ie. Uniform) to generate an image. Once the space is sampled, we have an idea which samples contributed to the final color. \n", "\n", "We can use this information to sample more around those regions using a `PDFSampler`. The PDF sampler is described more below." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Spaced Samplers\n", "\n", "These are the most basic samplers that spaces samples based on a predefined function. These samplers have all have a starting and ending distance (also known as a near/far plane). The plots below are histograms of points sampled from some predefined samplers. \n" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "tags": [ "hide-input" ] }, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "3e6b9d9b42cb4dc89f40a570007d00ec", "version_major": 2, "version_minor": 0 }, "text/plain": [ "Output()" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
\n"
      ],
      "text/plain": []
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "        \n",
       "        "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.plotly.v1+json": {
       "config": {
        "plotlyServerURL": "https://plot.ly"
       },
       "data": [
        {
         "nbinsx": 50,
         "opacity": 0.7,
         "type": "histogram",
         "x": [
          2,
          2.003000020980835,
          2.00600004196167,
          2.009000062942505,
          2.01200008392334,
          2.015000104904175,
          2.0180001258850098,
          2.0209999084472656,
          2.0239999294281006,
          2.0269999504089355,
          2.0299999713897705,
          2.0329999923706055,
          2.0360000133514404,
          2.0390000343322754,
          2.0420000553131104,
          2.0450000762939453,
          2.0480000972747803,
          2.050999879837036,
          2.053999900817871,
          2.056999921798706,
          2.059999942779541,
          2.062999963760376,
          2.065999984741211,
          2.069000005722046,
          2.072000026702881,
          2.075000047683716,
          2.078000068664551,
          2.0810000896453857,
          2.0840001106262207,
          2.0870001316070557,
          2.0900001525878906,
          2.0929999351501465,
          2.0959999561309814,
          2.0989999771118164,
          2.1019999980926514,
          2.1050000190734863,
          2.1080000400543213,
          2.1110000610351562,
          2.114000082015991,
          2.117000102996826,
          2.119999885559082,
          2.122999906539917,
          2.125999927520752,
          2.128999948501587,
          2.131999969482422,
          2.134999990463257,
          2.138000011444092,
          2.1410000324249268,
          2.1440000534057617,
          2.1469998359680176,
          2.1500000953674316,
          2.1529998779296875,
          2.1560001373291016,
          2.1589999198913574,
          2.1619999408721924,
          2.1649999618530273,
          2.1679999828338623,
          2.1710000038146973,
          2.1740000247955322,
          2.177000045776367,
          2.180000066757202,
          2.183000087738037,
          2.186000108718872,
          2.188999891281128,
          2.191999912261963,
          2.194999933242798,
          2.197999954223633,
          2.2009999752044678,
          2.2039999961853027,
          2.2070000171661377,
          2.2100000381469727,
          2.2130000591278076,
          2.2160000801086426,
          2.2190001010894775,
          2.2220001220703125,
          2.2249999046325684,
          2.2280001640319824,
          2.2309999465942383,
          2.2339999675750732,
          2.236999988555908,
          2.240000009536743,
          2.243000030517578,
          2.246000051498413,
          2.249000072479248,
          2.252000093460083,
          2.254999876022339,
          2.257999897003174,
          2.260999917984009,
          2.2639999389648438,
          2.267000198364258,
          2.2699999809265137,
          2.2730000019073486,
          2.2760000228881836,
          2.2790000438690186,
          2.2820000648498535,
          2.2849998474121094,
          2.2880001068115234,
          2.2909998893737793,
          2.2939999103546143,
          2.296999931335449,
          2.299999952316284,
          2.302999973297119,
          2.305999994277954,
          2.309000015258789,
          2.312000036239624,
          2.315000057220459,
          2.317999839782715,
          2.321000099182129,
          2.324000120162964,
          2.3269999027252197,
          2.3299999237060547,
          2.3329999446868896,
          2.3359999656677246,
          2.3389999866485596,
          2.3420000076293945,
          2.3450000286102295,
          2.3480000495910645,
          2.3510000705718994,
          2.3540000915527344,
          2.3569998741149902,
          2.3600001335144043,
          2.36299991607666,
          2.366000175476074,
          2.36899995803833,
          2.371999979019165,
          2.375,
          2.378000020980835,
          2.38100004196167,
          2.384000062942505,
          2.38700008392334,
          2.390000104904175,
          2.3930001258850098,
          2.3959999084472656,
          2.3989999294281006,
          2.4019999504089355,
          2.4049999713897705,
          2.4079999923706055,
          2.4110000133514404,
          2.4140000343322754,
          2.4170000553131104,
          2.4200000762939453,
          2.422999858856201,
          2.4260001182556152,
          2.428999900817871,
          2.432000160217285,
          2.434999942779541,
          2.437999963760376,
          2.440999984741211,
          2.444000005722046,
          2.447000026702881,
          2.450000047683716,
          2.453000068664551,
          2.4560000896453857,
          2.4590001106262207,
          2.4619998931884766,
          2.4650001525878906,
          2.4679999351501465,
          2.4709999561309814,
          2.4739999771118164,
          2.4769999980926514,
          2.4800000190734863,
          2.4830000400543213,
          2.4860000610351562,
          2.489000082015991,
          2.492000102996826,
          2.494999885559082,
          2.498000144958496,
          2.500999927520752,
          2.504000186920166,
          2.506999969482422,
          2.509999990463257,
          2.513000011444092,
          2.5160000324249268,
          2.5190000534057617,
          2.5220000743865967,
          2.5250000953674316,
          2.5280001163482666,
          2.5310001373291016,
          2.5339999198913574,
          2.5370001792907715,
          2.5399999618530273,
          2.5429999828338623,
          2.5460000038146973,
          2.5490000247955322,
          2.552000045776367,
          2.555000066757202,
          2.558000087738037,
          2.561000108718872,
          2.564000129699707,
          2.566999912261963,
          2.570000171661377,
          2.572999954223633,
          2.5759999752044678,
          2.5789999961853027,
          2.5820000171661377,
          2.5850000381469727,
          2.5880000591278076,
          2.5910000801086426,
          2.5939998626708984,
          2.5970001220703125,
          2.5999999046325684,
          2.6030001640319824,
          2.6059999465942383,
          2.6090002059936523,
          2.611999988555908,
          2.615000009536743,
          2.618000030517578,
          2.620999813079834,
          2.624000072479248,
          2.627000093460083,
          2.630000114440918,
          2.632999897003174,
          2.635999917984009,
          2.6389999389648438,
          2.642000198364258,
          2.6449999809265137,
          2.6480000019073486,
          2.6510000228881836,
          2.6540000438690186,
          2.6570000648498535,
          2.6599998474121094,
          2.6630001068115234,
          2.6659998893737793,
          2.6690001487731934,
          2.671999931335449,
          2.674999952316284,
          2.677999973297119,
          2.681000232696533,
          2.684000015258789,
          2.687000036239624,
          2.690000057220459,
          2.692999839782715,
          2.696000099182129,
          2.6989998817443848,
          2.702000141143799,
          2.7049999237060547,
          2.7080001831054688,
          2.7109999656677246,
          2.7139999866485596,
          2.7170000076293945,
          2.7200000286102295,
          2.7230000495910645,
          2.7260000705718994,
          2.7290000915527344,
          2.7319998741149902,
          2.7350001335144043,
          2.73799991607666,
          2.741000175476074,
          2.74399995803833,
          2.747000217437744,
          2.75,
          2.753000020980835,
          2.75600004196167,
          2.759000062942505,
          2.76200008392334,
          2.765000104904175,
          2.7680001258850098,
          2.7709999084472656,
          2.7740001678466797,
          2.7769999504089355,
          2.7800002098083496,
          2.7829999923706055,
          2.7860002517700195,
          2.7890000343322754,
          2.7919998168945312,
          2.7950000762939453,
          2.797999858856201,
          2.8010001182556152,
          2.803999900817871,
          2.807000160217285,
          2.809999942779541,
          2.812999963760376,
          2.815999984741211,
          2.819000005722046,
          2.822000026702881,
          2.825000047683716,
          2.828000068664551,
          2.8309998512268066,
          2.8340001106262207,
          2.8369998931884766,
          2.8400001525878906,
          2.8429999351501465,
          2.8460001945495605,
          2.8489999771118164,
          2.8519999980926514,
          2.8550000190734863,
          2.8580000400543213,
          2.8610000610351562,
          2.864000082015991,
          2.867000102996826,
          2.869999885559082,
          2.873000144958496,
          2.875999927520752,
          2.879000186920166,
          2.881999969482422,
          2.885000228881836,
          2.888000011444092,
          2.8909997940063477,
          2.8940000534057617,
          2.8969998359680176,
          2.9000000953674316,
          2.9029998779296875,
          2.9060001373291016,
          2.9089999198913574,
          2.9120001792907715,
          2.9149999618530273,
          2.9180002212524414,
          2.9210000038146973,
          2.9240002632141113,
          2.927000045776367,
          2.930000066757202,
          2.933000087738037,
          2.935999870300293,
          2.939000129699707,
          2.941999912261963,
          2.945000171661377,
          2.947999954223633,
          2.9509999752044678,
          2.9539999961853027,
          2.9570000171661377,
          2.9600000381469727,
          2.9630000591278076,
          2.9660000801086426,
          2.9689998626708984,
          2.9720001220703125,
          2.9749999046325684,
          2.9780001640319824,
          2.9809999465942383,
          2.9840002059936523,
          2.986999988555908,
          2.990000009536743,
          2.993000030517578,
          2.996000051498413,
          2.999000072479248,
          3.002000093460083,
          3.005000114440918,
          3.007999897003174,
          3.011000156402588,
          3.0139999389648438,
          3.017000198364258,
          3.0199999809265137,
          3.0230002403259277,
          3.0260000228881836,
          3.0290000438690186,
          3.0320000648498535,
          3.0349998474121094,
          3.0380001068115234,
          3.0409998893737793,
          3.0440001487731934,
          3.046999931335449,
          3.0500001907348633,
          3.052999973297119,
          3.056000232696533,
          3.059000015258789,
          3.062000274658203,
          3.065000057220459,
          3.068000078201294,
          3.071000099182129,
          3.074000120162964,
          3.077000141143799,
          3.0799999237060547,
          3.0830001831054688,
          3.0859999656677246,
          3.0889999866485596,
          3.0920000076293945,
          3.0950000286102295,
          3.0980000495910645,
          3.1010000705718994,
          3.1040000915527344,
          3.1069998741149902,
          3.1100001335144043,
          3.11299991607666,
          3.116000175476074,
          3.11899995803833,
          3.122000217437744,
          3.125,
          3.128000020980835,
          3.13100004196167,
          3.134000062942505,
          3.13700008392334,
          3.140000104904175,
          3.1430001258850098,
          3.1459999084472656,
          3.1490001678466797,
          3.1519999504089355,
          3.1549999713897705,
          3.1579999923706055,
          3.1610000133514404,
          3.1640000343322754,
          3.1669998168945312,
          3.1700000762939453,
          3.172999858856201,
          3.1760001182556152,
          3.178999900817871,
          3.182000160217285,
          3.184999942779541,
          3.188000202178955,
          3.190999984741211,
          3.194000244140625,
          3.197000026702881,
          3.200000047683716,
          3.2029998302459717,
          3.2059998512268066,
          3.2089998722076416,
          3.2119998931884766,
          3.2150001525878906,
          3.2180001735687256,
          3.2210001945495605,
          3.2240002155303955,
          3.2269999980926514,
          3.2300000190734863,
          3.2330000400543213,
          3.2360000610351562,
          3.239000082015991,
          3.242000102996826,
          3.244999885559082,
          3.247999906539917,
          3.250999927520752,
          3.254000186920166,
          3.256999969482422,
          3.260000228881836,
          3.263000011444092,
          3.2660000324249268,
          3.2690000534057617,
          3.2720000743865967,
          3.2750000953674316,
          3.2780001163482666,
          3.2809998989105225,
          3.2839999198913574,
          3.2869999408721924,
          3.2899999618530273,
          3.2930002212524414,
          3.2960000038146973,
          3.2990000247955322,
          3.302000045776367,
          3.304999828338623,
          3.308000087738037,
          3.310999870300293,
          3.314000129699707,
          3.317000150680542,
          3.319999933242798,
          3.323000192642212,
          3.3259999752044678,
          3.3289999961853027,
          3.332000255584717,
          3.3350000381469727,
          3.3380002975463867,
          3.3410000801086426,
          3.3439998626708984,
          3.3469998836517334,
          3.3499999046325684,
          3.3530001640319824,
          3.3560001850128174,
          3.3590002059936523,
          3.3620002269744873,
          3.365000009536743,
          3.368000030517578,
          3.371000051498413,
          3.374000072479248,
          3.377000093460083,
          3.380000114440918,
          3.382999897003174,
          3.386000156402588,
          3.3889999389648438,
          3.392000198364258,
          3.3949999809265137,
          3.3980002403259277,
          3.4010000228881836,
          3.4040000438690186,
          3.4070000648498535,
          3.4100000858306885,
          3.4130001068115234,
          3.4160001277923584,
          3.4189999103546143,
          3.421999931335449,
          3.424999952316284,
          3.427999973297119,
          3.431000232696533,
          3.434000253677368,
          3.437000274658203,
          3.440000057220459,
          3.442999839782715,
          3.446000099182129,
          3.4489998817443848,
          3.452000141143799,
          3.455000162124634,
          3.4579999446868896,
          3.4610002040863037,
          3.4639999866485596,
          3.4670000076293945,
          3.4700002670288086,
          3.4730000495910645,
          3.4760003089904785,
          3.4790000915527344,
          3.4820001125335693,
          3.4850001335144043,
          3.48799991607666,
          3.491000175476074,
          3.494000196456909,
          3.497000217437744,
          3.5,
          3.503000020980835,
          3.50600004196167,
          3.509000062942505,
          3.5119998455047607,
          3.5149998664855957,
          3.5179998874664307,
          3.5209999084472656,
          3.5239996910095215,
          3.5269997119903564,
          3.5299997329711914,
          3.5329999923706055,
          3.5360000133514404,
          3.5390000343322754,
          3.5419998168945312,
          3.544999837875366,
          3.547999858856201,
          3.550999879837036,
          3.553999900817871,
          3.557000160217285,
          3.559999942779541,
          3.562999725341797,
          3.565999746322632,
          3.569000005722046,
          3.572000026702881,
          3.575000047683716,
          3.578000068664551,
          3.5809998512268066,
          3.5839998722076416,
          3.5869998931884766,
          3.5899999141693115,
          3.5930001735687256,
          3.5960001945495605,
          3.5989999771118164,
          3.6019997596740723,
          3.6050000190734863,
          3.607999801635742,
          3.610999822616577,
          3.613999843597412,
          3.617000102996826,
          3.619999885559082,
          3.622999668121338,
          3.625999689102173,
          3.628999948501587,
          3.631999969482422,
          3.634999990463257,
          3.638000011444092,
          3.6409997940063477,
          3.6439998149871826,
          3.6469998359680176,
          3.6499998569488525,
          3.6530001163482666,
          3.6560001373291016,
          3.6589999198913574,
          3.6619997024536133,
          3.6649999618530273,
          3.6679999828338623,
          3.6710000038146973,
          3.6740000247955322,
          3.677000045776367,
          3.679999828338623,
          3.682999849319458,
          3.685999870300293,
          3.689000129699707,
          3.692000150680542,
          3.695000171661377,
          3.697999954223633,
          3.7009999752044678,
          3.7039997577667236,
          3.7069997787475586,
          3.7099997997283936,
          3.7130000591278076,
          3.7160000801086426,
          3.7189998626708984,
          3.7219996452331543,
          3.7249999046325684,
          3.7279999256134033,
          3.7309999465942383,
          3.7339999675750732,
          3.736999988555908,
          3.739999771118164,
          3.742999792098999,
          3.745999813079834,
          3.749000072479248,
          3.752000093460083,
          3.755000114440918,
          3.757999897003174,
          3.760999917984009,
          3.7639999389648438,
          3.7669999599456787,
          3.7699999809265137,
          3.7730002403259277,
          3.7760000228881836,
          3.7789998054504395,
          3.7819998264312744,
          3.7850000858306885,
          3.7880001068115234,
          3.7910001277923584,
          3.7940001487731934,
          3.796999931335449,
          3.799999713897705,
          3.80299973487854,
          3.805999755859375,
          3.809000015258789,
          3.812000036239624,
          3.815000057220459,
          3.817999839782715,
          3.82099986076355,
          3.8239998817443848,
          3.8269999027252197,
          3.8299999237060547,
          3.8330001831054688,
          3.8359999656677246,
          3.8389997482299805,
          3.8419997692108154,
          3.8450000286102295,
          3.8480000495910645,
          3.8510000705718994,
          3.8540000915527344,
          3.8569998741149902,
          3.859999895095825,
          3.86299991607666,
          3.865999937057495,
          3.869000196456909,
          3.871999979019165,
          3.875,
          3.877999782562256,
          3.880999803543091,
          3.883999824523926,
          3.8869998455047607,
          3.8899998664855957,
          3.8930001258850098,
          3.8959999084472656,
          3.8989996910095215,
          3.9019997119903564,
          3.9049999713897705,
          3.9079999923706055,
          3.9110000133514404,
          3.9140000343322754,
          3.9169998168945312,
          3.919999837875366,
          3.922999858856201,
          3.925999879837036,
          3.92900013923645,
          3.932000160217285,
          3.934999942779541,
          3.937999725341797,
          3.940999984741211,
          3.944000005722046,
          3.947000026702881,
          3.950000047683716,
          3.953000068664551,
          3.9559998512268066,
          3.9589998722076416,
          3.9619998931884766,
          3.9650001525878906,
          3.9679999351501465,
          3.9709999561309814,
          3.9739999771118164,
          3.9769997596740723,
          3.9799997806549072,
          3.982999801635742,
          3.985999822616577,
          3.989000082015991,
          3.992000102996826,
          3.994999885559082,
          3.997999668121338,
          4.000999927520752,
          4.003999710083008,
          4.006999969482422,
          4.010000228881836,
          4.013000011444092,
          4.015999794006348,
          4.019000053405762,
          4.021999835968018,
          4.025000095367432,
          4.0279998779296875,
          4.031000137329102,
          4.033999919891357,
          4.036999702453613,
          4.039999961853027,
          4.043000221252441,
          4.046000003814697,
          4.049000263214111,
          4.052000045776367,
          4.054999828338623,
          4.057999610900879,
          4.060999870300293,
          4.064000129699707,
          4.066999912261963,
          4.069999694824219,
          4.072999954223633,
          4.075999736785889,
          4.0789995193481445,
          4.081999778747559,
          4.085000038146973,
          4.088000297546387,
          4.091000080108643,
          4.093999862670898,
          4.0970001220703125,
          4.099999904632568,
          4.102999687194824,
          4.105999946594238,
          4.109000205993652,
          4.111999988555908,
          4.114999771118164,
          4.118000030517578,
          4.121000289916992,
          4.124000072479248,
          4.126999855041504,
          4.130000114440918,
          4.132999897003174,
          4.13599967956543,
          4.138999938964844,
          4.142000198364258,
          4.145000457763672,
          4.148000240325928,
          4.151000022888184,
          4.1539998054504395,
          4.1570000648498535,
          4.159999847412109,
          4.163000106811523,
          4.165999889373779,
          4.169000148773193,
          4.171999931335449,
          4.174999713897705,
          4.177999496459961,
          4.180999755859375,
          4.184000015258789,
          4.187000274658203,
          4.190000057220459,
          4.192999839782715,
          4.196000099182129,
          4.198999881744385,
          4.201999664306641,
          4.204999923706055,
          4.208000183105469,
          4.210999965667725,
          4.2139997482299805,
          4.2170000076293945,
          4.220000267028809,
          4.2230000495910645,
          4.22599983215332,
          4.229000091552734,
          4.23199987411499,
          4.234999656677246,
          4.23799991607666,
          4.241000175476074,
          4.24399995803833,
          4.246999740600586,
          4.25,
          4.252999782562256,
          4.255999565124512,
          4.258999824523926,
          4.26200008392334,
          4.265000343322754,
          4.26800012588501,
          4.270999908447266,
          4.2739996910095215,
          4.2769999504089355,
          4.279999732971191,
          4.2829999923706055,
          4.2860002517700195,
          4.289000034332275,
          4.291999816894531,
          4.295000076293945,
          4.297999858856201,
          4.301000118255615,
          4.303999900817871,
          4.307000160217285,
          4.309999942779541,
          4.312999725341797,
          4.315999984741211,
          4.319000244140625,
          4.322000026702881,
          4.325000286102295,
          4.328000068664551,
          4.330999851226807,
          4.3339996337890625,
          4.336999893188477,
          4.340000152587891,
          4.3429999351501465,
          4.345999717712402,
          4.348999977111816,
          4.351999759674072,
          4.354999542236328,
          4.357999801635742,
          4.361000061035156,
          4.36400032043457,
          4.367000102996826,
          4.369999885559082,
          4.373000144958496,
          4.375999927520752,
          4.378999710083008,
          4.381999969482422,
          4.385000228881836,
          4.388000011444092,
          4.390999794006348,
          4.394000053405762,
          4.397000312805176,
          4.400000095367432,
          4.4029998779296875,
          4.405999660491943,
          4.409000396728516,
          4.411999702453613,
          4.414999961853027,
          4.417999744415283,
          4.4210004806518555,
          4.423999786376953,
          4.426999568939209,
          4.429999828338623,
          4.432999610900879,
          4.435999870300293,
          4.438999652862549,
          4.441999912261963,
          4.444999694824219,
          4.447999954223633,
          4.451000213623047,
          4.4539995193481445,
          4.457000255584717,
          4.460000038146973,
          4.463000297546387,
          4.465999603271484,
          4.469000339508057,
          4.4720001220703125,
          4.474999904632568,
          4.478000164031982,
          4.480999946594238,
          4.483999729156494,
          4.486999988555908,
          4.490000247955322,
          4.493000030517578,
          4.495999813079834,
          4.499000072479248,
          4.501999855041504,
          4.505000114440918,
          4.508000373840332,
          4.51099967956543,
          4.513999938964844,
          4.517000198364258,
          4.519999980926514,
          4.5229997634887695,
          4.525999546051025,
          4.529000282287598,
          4.531999588012695,
          4.534999847412109,
          4.537999629974365,
          4.5410003662109375,
          4.543999671936035,
          4.546999931335449,
          4.550000190734863,
          4.552999973297119,
          4.556000232696533,
          4.559000015258789,
          4.562000274658203,
          4.565000057220459,
          4.568000316619873,
          4.571000099182129,
          4.573999881744385,
          4.577000141143799,
          4.579999923706055,
          4.5829997062683105,
          4.585999965667725,
          4.5889997482299805,
          4.5920000076293945,
          4.59499979019165,
          4.5980000495910645,
          4.60099983215332,
          4.604000091552734,
          4.607000350952148,
          4.609999656677246,
          4.613000392913818,
          4.615999698638916,
          4.61899995803833,
          4.621999740600586,
          4.625,
          4.628000259399414,
          4.630999565124512,
          4.633999824523926,
          4.63700008392334,
          4.640000343322754,
          4.642999649047852,
          4.645999908447266,
          4.64900016784668,
          4.6519999504089355,
          4.65500020980835,
          4.6579999923706055,
          4.660999774932861,
          4.664000034332275,
          4.6670002937316895,
          4.670000076293945,
          4.672999858856201,
          4.676000118255615,
          4.678999900817871,
          4.681999683380127,
          4.685000419616699,
          4.688000202178955,
          4.690999984741211,
          4.693999767303467,
          4.697000026702881,
          4.699999809265137,
          4.702999591827393,
          4.705999851226807,
          4.7089996337890625,
          4.711999893188477,
          4.714999675750732,
          4.7179999351501465,
          4.720999717712402,
          4.723999977111816,
          4.7270002365112305,
          4.729999542236328,
          4.7330002784729,
          4.736000061035156,
          4.73900032043457,
          4.741999626159668,
          4.74500036239624,
          4.748000144958496,
          4.750999927520752,
          4.754000186920166,
          4.756999969482422,
          4.759999752044678,
          4.763000011444092,
          4.766000270843506,
          4.769000053405762,
          4.771999835968018,
          4.775000095367432,
          4.7779998779296875,
          4.781000137329102,
          4.783999919891357,
          4.7870001792907715,
          4.789999961853027,
          4.792999744415283,
          4.796000003814697,
          4.798999786376953,
          4.801999568939209,
          4.805000305175781,
          4.807999610900879,
          4.810999870300293,
          4.813999652862549,
          4.817000389099121,
          4.819999694824219,
          4.822999954223633,
          4.826000213623047,
          4.828999996185303,
          4.832000255584717,
          4.835000038146973,
          4.838000297546387,
          4.841000080108643,
          4.844000339508057,
          4.8470001220703125,
          4.849999904632568,
          4.853000164031982,
          4.855999946594238,
          4.858999729156494,
          4.861999988555908,
          4.864999771118164,
          4.868000030517578,
          4.870999813079834,
          4.874000072479248,
          4.876999855041504,
          4.87999963760376,
          4.882999897003174,
          4.886000156402588,
          4.888999938964844,
          4.8919997215271,
          4.894999980926514,
          4.8979997634887695,
          4.901000022888184,
          4.904000282287598,
          4.906999588012695,
          4.909999847412109,
          4.913000106811523,
          4.9160003662109375,
          4.918999671936035,
          4.921999931335449,
          4.925000190734863,
          4.927999973297119,
          4.931000232696533,
          4.934000015258789,
          4.936999797821045,
          4.940000057220459,
          4.943000316619873,
          4.946000099182129,
          4.948999881744385,
          4.952000141143799,
          4.954999923706055,
          4.9579997062683105,
          4.961000442504883,
          4.9639997482299805,
          4.9670000076293945,
          4.96999979019165,
          4.973000526428223,
          4.97599983215332,
          4.978999614715576,
          4.982000350952148,
          4.984999656677246,
          4.98799991607666,
          4.990999698638916,
          4.994000434875488,
          4.996999740600586
         ],
         "xaxis": "x",
         "yaxis": "y"
        },
        {
         "nbinsx": 50,
         "opacity": 0.7,
         "type": "histogram",
         "x": [
          2,
          2.0012006759643555,
          2.0024027824401855,
          2.0036065578460693,
          2.0048115253448486,
          2.0060181617736816,
          2.00722599029541,
          2.0084354877471924,
          2.009646415710449,
          2.0108585357666016,
          2.0120723247528076,
          2.0132875442504883,
          2.0145044326782227,
          2.0157225131988525,
          2.016942262649536,
          2.0181634426116943,
          2.019386053085327,
          2.0206103324890137,
          2.0218358039855957,
          2.0230629444122314,
          2.024291515350342,
          2.0255215167999268,
          2.0267531871795654,
          2.0279862880706787,
          2.0292208194732666,
          2.030456781387329,
          2.0316944122314453,
          2.032933473587036,
          2.0341742038726807,
          2.0354161262512207,
          2.0366597175598145,
          2.037905216217041,
          2.039151668548584,
          2.0404000282287598,
          2.041649580001831,
          2.042901039123535,
          2.0441536903381348,
          2.045408010482788,
          2.046663761138916,
          2.0479211807250977,
          2.049180507659912,
          2.050440788269043,
          2.0517029762268066,
          2.052966594696045,
          2.054231882095337,
          2.0554983615875244,
          2.0567667484283447,
          2.0580365657806396,
          2.0593080520629883,
          2.0605812072753906,
          2.0618557929992676,
          2.063131809234619,
          2.0644094944000244,
          2.0656888484954834,
          2.066969871520996,
          2.0682523250579834,
          2.0695364475250244,
          2.07082200050354,
          2.0721094608306885,
          2.0733983516693115,
          2.0746889114379883,
          2.0759809017181396,
          2.0772745609283447,
          2.0785698890686035,
          2.079866886138916,
          2.081165313720703,
          2.082465648651123,
          2.0837676525115967,
          2.085071086883545,
          2.0863759517669678,
          2.0876827239990234,
          2.0889909267425537,
          2.090301036834717,
          2.0916125774383545,
          2.092925786972046,
          2.094240665435791,
          2.095557451248169,
          2.0968756675720215,
          2.0981955528259277,
          2.0995171070098877,
          2.1008403301239014,
          2.1021652221679688,
          2.10349178314209,
          2.1048200130462646,
          2.106149911880493,
          2.1074817180633545,
          2.1088149547576904,
          2.11014986038208,
          2.1114864349365234,
          2.1128249168395996,
          2.1141650676727295,
          2.115506649017334,
          2.1168501377105713,
          2.1181952953338623,
          2.119542121887207,
          2.1208908557891846,
          2.1222410202026367,
          2.1235930919647217,
          2.1249468326568604,
          2.1263022422790527,
          2.127659559249878,
          2.129018545150757,
          2.1303791999816895,
          2.131741523742676,
          2.133105754852295,
          2.1344716548919678,
          2.1358394622802734,
          2.1372087001800537,
          2.138579845428467,
          2.1399528980255127,
          2.1413276195526123,
          2.1427042484283447,
          2.1440823078155518,
          2.1454625129699707,
          2.1468441486358643,
          2.1482276916503906,
          2.14961314201355,
          2.1510000228881836,
          2.1523890495300293,
          2.153779983520508,
          2.15517258644104,
          2.156566858291626,
          2.1579627990722656,
          2.159360885620117,
          2.1607606410980225,
          2.1621620655059814,
          2.1635653972625732,
          2.164970636367798,
          2.1663777828216553,
          2.1677868366241455,
          2.1691973209381104,
          2.170609951019287,
          2.1720242500305176,
          2.17344069480896,
          2.174858570098877,
          2.176278591156006,
          2.1777002811431885,
          2.179124116897583,
          2.1805496215820312,
          2.181976795196533,
          2.183406114578247,
          2.1848373413085938,
          2.186270236968994,
          2.1877050399780273,
          2.1891417503356934,
          2.190580368041992,
          2.192021131515503,
          2.1934635639190674,
          2.1949079036712646,
          2.1963541507720947,
          2.1978020668029785,
          2.1992523670196533,
          2.2007040977478027,
          2.202157974243164,
          2.2036139965057373,
          2.2050716876983643,
          2.206531524658203,
          2.2079930305480957,
          2.209456443786621,
          2.2109220027923584,
          2.2123894691467285,
          2.2138588428497314,
          2.215330123901367,
          2.2168033123016357,
          2.218278646469116,
          2.2197558879852295,
          2.2212350368499756,
          2.2227160930633545,
          2.2241992950439453,
          2.225684404373169,
          2.2271714210510254,
          2.2286605834960938,
          2.230151653289795,
          2.231644630432129,
          2.233139991760254,
          2.2346370220184326,
          2.236135959625244,
          2.2376370429992676,
          2.239140272140503,
          2.240645408630371,
          2.242152452468872,
          2.243661642074585,
          2.2451729774475098,
          2.2466862201690674,
          2.248201608657837,
          2.2497189044952393,
          2.2512381076812744,
          2.2527596950531006,
          2.2542831897735596,
          2.2558085918426514,
          2.257336139678955,
          2.25886607170105,
          2.2603979110717773,
          2.2619316577911377,
          2.26346755027771,
          2.265005588531494,
          2.2665457725524902,
          2.2680881023406982,
          2.269632339477539,
          2.271178722381592,
          2.2727272510528564,
          2.274277925491333,
          2.2758307456970215,
          2.2773854732513428,
          2.278942584991455,
          2.2805016040802,
          2.2820627689361572,
          2.2836263179779053,
          2.2851920127868652,
          2.286759614944458,
          2.288329601287842,
          2.2899014949798584,
          2.291475772857666,
          2.2930519580841064,
          2.294630527496338,
          2.2962112426757812,
          2.2977943420410156,
          2.299379348754883,
          2.300966501235962,
          2.302555799484253,
          2.304147481918335,
          2.305741310119629,
          2.3073372840881348,
          2.3089354038238525,
          2.3105359077453613,
          2.312138795852661,
          2.313743829727173,
          2.3153507709503174,
          2.316960096359253,
          2.3185715675354004,
          2.320185661315918,
          2.3218016624450684,
          2.3234200477600098,
          2.325040817260742,
          2.3266637325286865,
          2.3282887935638428,
          2.32991623878479,
          2.331545829772949,
          2.3331778049468994,
          2.3348121643066406,
          2.3364486694335938,
          2.338087320327759,
          2.339728355407715,
          2.341372013092041,
          2.343017816543579,
          2.344666004180908,
          2.346316337585449,
          2.3479690551757812,
          2.3496241569519043,
          2.3512814044952393,
          2.3529410362243652,
          2.3546032905578613,
          2.3562676906585693,
          2.3579344749450684,
          2.3596036434173584,
          2.3612751960754395,
          2.3629491329193115,
          2.3646249771118164,
          2.3663039207458496,
          2.3679847717285156,
          2.3696682453155518,
          2.371354103088379,
          2.373042345046997,
          2.3747329711914062,
          2.3764257431030273,
          2.3781211376190186,
          2.37981915473938,
          2.381519317626953,
          2.3832221031188965,
          2.384927272796631,
          2.3866348266601562,
          2.3883450031280518,
          2.390057325363159,
          2.3917722702026367,
          2.3934898376464844,
          2.395209550857544,
          2.3969318866729736,
          2.3986566066741943,
          2.400383949279785,
          2.402114152908325,
          2.403846025466919,
          2.405580997467041,
          2.407318353652954,
          2.409058094024658,
          2.4108004570007324,
          2.4125449657440186,
          2.414292573928833,
          2.4160425662994385,
          2.417794942855835,
          2.4195501804351807,
          2.4213075637817383,
          2.423067569732666,
          2.424830436706543,
          2.426595449447632,
          2.42836332321167,
          2.430133581161499,
          2.4319067001342773,
          2.4336822032928467,
          2.435460329055786,
          2.4372410774230957,
          2.4390244483947754,
          2.440810203552246,
          2.442599058151245,
          2.444390058517456,
          2.446183919906616,
          2.4479804039001465,
          2.449779510498047,
          2.4515814781188965,
          2.453385829925537,
          2.455192804336548,
          2.457002639770508,
          2.458814859390259,
          2.460629940032959,
          2.46244740486145,
          2.464268207550049,
          2.4660913944244385,
          2.467916965484619,
          2.469745635986328,
          2.4715769290924072,
          2.4734108448028564,
          2.475247621536255,
          2.4770867824554443,
          2.478929042816162,
          2.48077392578125,
          2.482621431350708,
          2.4844722747802734,
          2.486325263977051,
          2.4881811141967773,
          2.490039825439453,
          2.491901159286499,
          2.4937655925750732,
          2.4956324100494385,
          2.497502565383911,
          2.499375104904175,
          2.5012505054473877,
          2.503129005432129,
          2.5050101280212402,
          2.5068938732147217,
          2.5087809562683105,
          2.5106701850891113,
          2.5125627517700195,
          2.514457941055298,
          2.5163562297821045,
          2.5182576179504395,
          2.5201611518859863,
          2.5220682621002197,
          2.523977756500244,
          2.525890350341797,
          2.527805805206299,
          2.52972412109375,
          2.5316457748413086,
          2.533569812774658,
          2.535496950149536,
          2.5374271869659424,
          2.5393600463867188,
          2.5412960052490234,
          2.5432350635528564,
          2.5451767444610596,
          2.54712176322937,
          2.54906964302063,
          2.551020383834839,
          2.552974224090576,
          2.5549309253692627,
          2.5568909645080566,
          2.5588536262512207,
          2.560819387435913,
          2.562788486480713,
          2.5647599697113037,
          2.56673526763916,
          2.5687131881713867,
          2.5706942081451416,
          2.572678327560425,
          2.5746653079986572,
          2.576655626296997,
          2.5786490440368652,
          2.5806450843811035,
          2.5826447010040283,
          2.5846471786499023,
          2.586652994155884,
          2.5886616706848145,
          2.5906734466552734,
          2.592688798904419,
          2.5947067737579346,
          2.5967280864715576,
          2.598752498626709,
          2.6007802486419678,
          2.602811098098755,
          2.604844808578491,
          2.606882095336914,
          2.6089224815368652,
          2.6109659671783447,
          2.6130127906799316,
          2.615062713623047,
          2.6171159744262695,
          2.6191723346710205,
          2.621232032775879,
          2.6232950687408447,
          2.6253609657287598,
          2.6274304389953613,
          2.629503011703491,
          2.6315786838531494,
          2.6336581707000732,
          2.6357405185699463,
          2.637826442718506,
          2.639915704727173,
          2.642007827758789,
          2.644103765487671,
          2.646202564239502,
          2.6483049392700195,
          2.6504108905792236,
          2.652519941329956,
          2.654632329940796,
          2.6567482948303223,
          2.658867359161377,
          2.660989999771118,
          2.663115978240967,
          2.665245294570923,
          2.6673779487609863,
          2.6695139408111572,
          2.6716537475585938,
          2.6737966537475586,
          2.675943374633789,
          2.678093433380127,
          2.680246591567993,
          2.682403564453125,
          2.684563636779785,
          2.686727523803711,
          2.6888949871063232,
          2.691065549850464,
          2.693240165710449,
          2.695417881011963,
          2.697599172592163,
          2.69978404045105,
          2.701972246170044,
          2.704164505004883,
          2.70635986328125,
          2.7085587978363037,
          2.710761785507202,
          2.712967872619629,
          2.7151780128479004,
          2.7173914909362793,
          2.7196083068847656,
          2.7218291759490967,
          2.724053382873535,
          2.72628116607666,
          2.72851300239563,
          2.730748176574707,
          2.732987403869629,
          2.735229730606079,
          2.737476110458374,
          2.7397260665893555,
          2.7419795989990234,
          2.744237184524536,
          2.7464981079101562,
          2.748762845993042,
          2.7510316371917725,
          2.7533040046691895,
          2.755580186843872,
          2.7578601837158203,
          2.760143518447876,
          2.7624311447143555,
          2.7647221088409424,
          2.767017126083374,
          2.7693159580230713,
          2.771618366241455,
          2.773925304412842,
          2.776235580444336,
          2.7785496711730957,
          2.7808678150177,
          2.783189296722412,
          2.785515308380127,
          2.7878448963165283,
          2.7901785373687744,
          2.792515993118286,
          2.7948575019836426,
          2.7972028255462646,
          2.7995524406433105,
          2.8019051551818848,
          2.804262638092041,
          2.806623697280884,
          2.8089888095855713,
          2.8113577365875244,
          2.8137307167053223,
          2.816108226776123,
          2.8184893131256104,
          2.8208744525909424,
          2.8232638835906982,
          2.8256568908691406,
          2.828054428100586,
          2.830455780029297,
          2.8328611850738525,
          2.835270881652832,
          2.837684392929077,
          2.840102434158325,
          2.842524528503418,
          2.8449501991271973,
          2.8473806381225586,
          2.8498146533966064,
          2.8522531986236572,
          2.8546957969665527,
          2.857142925262451,
          2.8595941066741943,
          2.8620493412017822,
          2.864508867263794,
          2.8669724464416504,
          2.8694403171539307,
          2.8719124794006348,
          2.874389171600342,
          2.8768699169158936,
          2.879354953765869,
          2.8818440437316895,
          2.884337902069092,
          2.886835813522339,
          2.8893380165100098,
          2.8918449878692627,
          2.8943560123443604,
          2.896871328353882,
          2.899390935897827,
          2.9019150733947754,
          2.9044437408447266,
          2.9069766998291016,
          2.9095139503479004,
          2.9120559692382812,
          2.914602041244507,
          2.9171526432037354,
          2.919708013534546,
          2.9222676753997803,
          2.9248318672180176,
          2.9274003505706787,
          2.929973602294922,
          2.932551145553589,
          2.935133457183838,
          2.93772029876709,
          2.9403116703033447,
          2.9429075717926025,
          2.9455080032348633,
          2.948112964630127,
          2.9507226943969727,
          2.9533369541168213,
          2.955955982208252,
          2.9585797786712646,
          2.9612081050872803,
          2.963840961456299,
          2.9664788246154785,
          2.969120979309082,
          2.9717681407928467,
          2.9744198322296143,
          2.977076530456543,
          2.9797375202178955,
          2.982403516769409,
          2.985074520111084,
          2.987750291824341,
          2.9904305934906006,
          2.9931156635284424,
          2.9958057403564453,
          2.9985008239746094,
          3.0012004375457764,
          3.0039048194885254,
          3.0066146850585938,
          3.009328842163086,
          3.0120480060577393,
          3.014772415161133,
          3.0175013542175293,
          3.020235776901245,
          3.022974729537964,
          3.0257184505462646,
          3.0284674167633057,
          3.031221628189087,
          3.03398060798645,
          3.0367443561553955,
          3.039513349533081,
          3.042287826538086,
          3.0450668334960938,
          3.047851085662842,
          3.050640344619751,
          3.0534350872039795,
          3.056234836578369,
          3.059039354324341,
          3.0618491172790527,
          3.064664363861084,
          3.0674846172332764,
          3.07030987739563,
          3.0731406211853027,
          3.075976610183716,
          3.07881760597229,
          3.0816638469696045,
          3.0845155715942383,
          3.0873727798461914,
          3.0902349948883057,
          3.09310245513916,
          3.095975160598755,
          3.098853588104248,
          3.1017370223999023,
          3.104625701904297,
          3.107520341873169,
          3.110419988632202,
          3.1133248805999756,
          3.1162357330322266,
          3.1191515922546387,
          3.122073173522949,
          3.124999761581421,
          3.12793231010437,
          3.1308703422546387,
          3.1338136196136475,
          3.136762857437134,
          3.1397173404693604,
          3.1426773071289062,
          3.1456432342529297,
          3.1486144065856934,
          3.1515913009643555,
          3.154573917388916,
          3.157562255859375,
          3.1605563163757324,
          3.163555860519409,
          3.1665608882904053,
          3.169572114944458,
          3.17258882522583,
          3.1756112575531006,
          3.1786394119262695,
          3.181673526763916,
          3.184713363647461,
          3.187758684158325,
          3.190810441970825,
          3.1938679218292236,
          3.1969306468963623,
          3.1999998092651367,
          3.2030749320983887,
          3.20615553855896,
          3.209242343902588,
          3.2123348712921143,
          3.2154338359832764,
          3.218538761138916,
          3.221649408340454,
          3.2247660160064697,
          3.227888584136963,
          3.231017589569092,
          3.2341527938842773,
          3.2372937202453613,
          3.240440607070923,
          3.243593692779541,
          3.246752977371216,
          3.2499186992645264,
          3.2530901432037354,
          3.256268262863159,
          3.2594523429870605,
          3.2626426219940186,
          3.265839099884033,
          3.269042491912842,
          3.2722513675689697,
          3.2754666805267334,
          3.278688430786133,
          3.281916379928589,
          3.285151243209839,
          3.2883918285369873,
          3.2916393280029297,
          3.2948930263519287,
          3.2981529235839844,
          3.301419496536255,
          3.304692268371582,
          3.3079721927642822,
          3.31125807762146,
          3.3145508766174316,
          3.31784987449646,
          3.321155548095703,
          3.324467897415161,
          3.327786684036255,
          3.3311123847961426,
          3.334444761276245,
          3.3377835750579834,
          3.3411290645599365,
          3.3444812297821045,
          3.3478405475616455,
          3.3512065410614014,
          3.354578971862793,
          3.3579583168029785,
          3.361344337463379,
          3.3647372722625732,
          3.3681373596191406,
          3.371544122695923,
          3.374957799911499,
          3.378378391265869,
          3.381805658340454,
          3.385240077972412,
          3.3886821269989014,
          3.3921303749084473,
          3.395585775375366,
          3.399048328399658,
          3.402517795562744,
          3.405994176864624,
          3.409477949142456,
          3.412968873977661,
          3.4164674282073975,
          3.4199726581573486,
          3.423485040664673,
          3.42700457572937,
          3.4305317401885986,
          3.434065818786621,
          3.437607526779175,
          3.4411561489105225,
          3.4447121620178223,
          3.448275566101074,
          3.4518463611602783,
          3.4554247856140137,
          3.4590108394622803,
          3.462603807449341,
          3.4662044048309326,
          3.4698123931884766,
          3.473428249359131,
          3.4770517349243164,
          3.480682373046875,
          3.484320640563965,
          3.487966299057007,
          3.491619825363159,
          3.495281457901001,
          3.498950242996216,
          3.50262713432312,
          3.5063114166259766,
          3.5100033283233643,
          3.5137031078338623,
          3.517411470413208,
          3.5211267471313477,
          3.5248498916625977,
          3.5285816192626953,
          3.532320737838745,
          3.5360677242279053,
          3.539822578430176,
          3.5435855388641357,
          3.5473573207855225,
          3.5511364936828613,
          3.5549235343933105,
          3.558718681335449,
          3.5625221729278564,
          3.566333770751953,
          3.5701537132263184,
          3.573981523513794,
          3.577817440032959,
          3.5816617012023926,
          3.5855140686035156,
          3.5893752574920654,
          3.593244791030884,
          3.5971224308013916,
          3.601008176803589,
          3.604902505874634,
          3.6088054180145264,
          3.6127161979675293,
          3.616636276245117,
          3.6205644607543945,
          3.6245014667510986,
          3.6284468173980713,
          3.6324007511138916,
          3.6363632678985596,
          3.6403350830078125,
          3.644315004348755,
          3.648303508758545,
          3.6523008346557617,
          3.656306743621826,
          3.6603219509124756,
          3.6643457412719727,
          3.6683785915374756,
          3.672420024871826,
          3.6764702796936035,
          3.6805295944213867,
          3.684597969055176,
          3.688675880432129,
          3.6927623748779297,
          3.6968576908111572,
          3.7009620666503906,
          3.705075979232788,
          3.7091987133026123,
          3.7133309841156006,
          3.7174723148345947,
          3.7216224670410156,
          3.7257821559906006,
          3.7299511432647705,
          3.7341299057006836,
          3.7383179664611816,
          3.7425150871276855,
          3.7467215061187744,
          3.7509374618530273,
          3.7551629543304443,
          3.7593979835510254,
          3.7636430263519287,
          3.767897129058838,
          3.7721614837646484,
          3.776434898376465,
          3.7807180881500244,
          3.785010814666748,
          3.7893145084381104,
          3.7936267852783203,
          3.7979490756988525,
          3.802281141281128,
          3.8066232204437256,
          3.8109755516052246,
          3.8153374195098877,
          3.8197097778320312,
          3.824091672897339,
          3.828483819961548,
          3.8328857421875,
          3.8372981548309326,
          3.841721296310425,
          3.846153974533081,
          3.8505969047546387,
          3.8550498485565186,
          3.859513759613037,
          3.863987684249878,
          3.8684723377227783,
          3.872966766357422,
          3.877471923828125,
          3.8819873332977295,
          3.8865134716033936,
          3.891050100326538,
          3.8955979347229004,
          3.900156259536743,
          3.9047248363494873,
          3.909303903579712,
          3.913893938064575,
          3.918494939804077,
          3.9231069087982178,
          3.927729606628418,
          3.932363271713257,
          3.9370076656341553,
          3.9416630268096924,
          3.9463295936584473,
          3.951007843017578,
          3.9556963443756104,
          3.9603960514068604,
          3.965106964111328,
          3.9698290824890137,
          3.974562883377075,
          3.9793074131011963,
          3.9840638637542725,
          3.9888312816619873,
          3.993610143661499,
          3.9984004497528076,
          4.003202438354492,
          4.008016109466553,
          4.01284122467041,
          4.0176777839660645,
          4.022526264190674,
          4.027386665344238,
          4.032258033752441,
          4.0371413230896,
          4.042037010192871,
          4.046944618225098,
          4.051863670349121,
          4.0567946434021,
          4.06173849105835,
          4.0666937828063965,
          4.071661472320557,
          4.076640605926514,
          4.081632137298584,
          4.086636543273926,
          4.091652870178223,
          4.096681594848633,
          4.101722717285156,
          4.106776237487793,
          4.111842155456543,
          4.116920471191406,
          4.122011184692383,
          4.127115249633789,
          4.13223123550415,
          4.137360095977783,
          4.1425018310546875,
          4.147656440734863,
          4.1528239250183105,
          4.158004283905029,
          4.1631975173950195,
          4.168403625488281,
          4.173623085021973,
          4.178854942321777,
          4.184100151062012,
          4.189359188079834,
          4.1946306228637695,
          4.199915885925293,
          4.205214023590088,
          4.210526466369629,
          4.215851306915283,
          4.221189975738525,
          4.2265424728393555,
          4.231908321380615,
          4.237287998199463,
          4.24268102645874,
          4.248088359832764,
          4.253509044647217,
          4.258944034576416,
          4.264392375946045,
          4.269854545593262,
          4.275331497192383,
          4.280821800231934,
          4.2863264083862305,
          4.291845321655273,
          4.297379016876221,
          4.302926063537598,
          4.308487892150879,
          4.314063549041748,
          4.319654941558838,
          4.325259208679199,
          4.330878734588623,
          4.336513042449951,
          4.342162132263184,
          4.34782600402832,
          4.353504180908203,
          4.359197616577148,
          4.364906311035156,
          4.37062931060791,
          4.376367568969727,
          4.382120609283447,
          4.387889385223389,
          4.393672943115234,
          4.399472236633301,
          4.4052863121032715,
          4.411116123199463,
          4.416961193084717,
          4.422821521759033,
          4.42869758605957,
          4.434589862823486,
          4.440497398376465,
          4.446420669555664,
          4.452359676361084,
          4.458314895629883,
          4.464285850524902,
          4.470272541046143,
          4.476275444030762,
          4.482295036315918,
          4.488330364227295,
          4.494381904602051,
          4.500450134277344,
          4.506534576416016,
          4.512635231018066,
          4.518752574920654,
          4.524886608123779,
          4.531037330627441,
          4.537204742431641,
          4.543388843536377,
          4.549590110778809,
          4.5558085441589355,
          4.5620436668396,
          4.568295955657959,
          4.5745649337768555,
          4.580852031707764,
          4.587155818939209,
          4.593477249145508,
          4.599815845489502,
          4.606172561645508,
          4.612545967102051,
          4.6189374923706055,
          4.625346660614014,
          4.631774425506592,
          4.638218879699707,
          4.644681453704834,
          4.651162624359131,
          4.6576619148254395,
          4.66417932510376,
          4.670714378356934,
          4.6772685050964355,
          4.683840751647949,
          4.690431594848633,
          4.697041034698486,
          4.703668594360352,
          4.710315704345703,
          4.716980934143066,
          4.723665237426758,
          4.730368614196777,
          4.737091541290283,
          4.743833065032959,
          4.750593662261963,
          4.757373809814453,
          4.7641730308532715,
          4.770992279052734,
          4.777830600738525,
          4.784688949584961,
          4.791566848754883,
          4.798464775085449,
          4.805381774902344,
          4.812319278717041,
          4.819277286529541,
          4.826254844665527,
          4.833252906799316,
          4.84027099609375,
          4.8473100662231445,
          4.854369163513184,
          4.861448764801025,
          4.86854887008667,
          4.875670909881592,
          4.8828125,
          4.889975547790527,
          4.897159576416016,
          4.904365062713623,
          4.911591529846191,
          4.918838977813721,
          4.926108360290527,
          4.933399200439453,
          4.94071102142334,
          4.948045253753662,
          4.955401420593262,
          4.9627790451049805,
          4.970178604125977,
          4.977600574493408,
          4.985044956207275,
          4.99251127243042
         ],
         "xaxis": "x2",
         "yaxis": "y2"
        },
        {
         "nbinsx": 50,
         "opacity": 0.7,
         "type": "histogram",
         "x": [
          1.9999998807907104,
          2.0023250579833984,
          2.0046520233154297,
          2.006979465484619,
          2.0093090534210205,
          2.0116395950317383,
          2.0139718055725098,
          2.0163047313690186,
          2.0186398029327393,
          2.020975351333618,
          2.023313045501709,
          2.025651693344116,
          2.027991771697998,
          2.0303330421447754,
          2.0326759815216064,
          2.035020112991333,
          2.0373659133911133,
          2.039712429046631,
          2.0420608520507812,
          2.0444107055664062,
          2.0467615127563477,
          2.0491137504577637,
          2.051467180252075,
          2.0538220405578613,
          2.056178331375122,
          2.0585358142852783,
          2.060894727706909,
          2.0632550716400146,
          2.065617084503174,
          2.0679800510406494,
          2.0703446865081787,
          2.0727100372314453,
          2.0750772953033447,
          2.0774457454681396,
          2.0798158645629883,
          2.082186698913574,
          2.084559440612793,
          2.086933135986328,
          2.089308261871338,
          2.0916848182678223,
          2.094062566757202,
          2.0964417457580566,
          2.098822832107544,
          2.1012046337127686,
          2.1035878658294678,
          2.1059725284576416,
          2.108358860015869,
          2.110746145248413,
          2.1131350994110107,
          2.1155247688293457,
          2.1179163455963135,
          2.1203091144561768,
          2.1227030754089355,
          2.125098466873169,
          2.127495288848877,
          2.1298933029174805,
          2.132293224334717,
          2.1346940994262695,
          2.1370961666107178,
          2.1394996643066406,
          2.141904830932617,
          2.1443111896514893,
          2.146718978881836,
          2.14912748336792,
          2.151538133621216,
          2.1539502143859863,
          2.156363010406494,
          2.1587769985198975,
          2.1611931324005127,
          2.1636102199554443,
          2.1660284996032715,
          2.1684482097625732,
          2.1708693504333496,
          2.1732916831970215,
          2.175715684890747,
          2.178140878677368,
          2.180567741394043,
          2.182995557785034,
          2.1854248046875,
          2.1878552436828613,
          2.1902875900268555,
          2.192720413208008,
          2.195155382156372,
          2.1975908279418945,
          2.200028419494629,
          2.2024667263031006,
          2.204907178878784,
          2.207348346710205,
          2.209791421890259,
          2.212235450744629,
          2.2146809101104736,
          2.217127561569214,
          2.219576120376587,
          2.2220258712768555,
          2.2244765758514404,
          2.226928472518921,
          2.229382276535034,
          2.231837034225464,
          2.234293222427368,
          2.236750841140747,
          2.2392096519470215,
          2.2416698932647705,
          2.2441320419311523,
          2.2465949058532715,
          2.2490594387054443,
          2.2515249252319336,
          2.2539920806884766,
          2.256460428237915,
          2.2589306831359863,
          2.2614011764526367,
          2.263874053955078,
          2.266347885131836,
          2.2688229084014893,
          2.2712996006011963,
          2.2737772464752197,
          2.2762563228607178,
          2.2787370681762695,
          2.281219005584717,
          2.2837021350860596,
          2.286186695098877,
          2.288673162460327,
          2.2911605834960938,
          2.293649196624756,
          2.2961390018463135,
          2.298630475997925,
          2.3011231422424316,
          2.303617238998413,
          2.30611252784729,
          2.3086097240448,
          2.3111073970794678,
          2.3136072158813477,
          2.3161075115203857,
          2.318610429763794,
          2.3211135864257812,
          2.3236186504364014,
          2.326124906539917,
          2.328632354736328,
          2.331141233444214,
          2.3336517810821533,
          2.3361637592315674,
          2.338676691055298,
          2.3411905765533447,
          2.3437066078186035,
          2.3462233543395996,
          2.3487420082092285,
          2.351261615753174,
          2.3537826538085938,
          2.3563051223754883,
          2.3588292598724365,
          2.361354112625122,
          2.3638811111450195,
          2.366408348083496,
          2.3689379692077637,
          2.3714685440063477,
          2.374000310897827,
          2.3765335083007812,
          2.379068374633789,
          2.3816041946411133,
          2.384141445159912,
          2.3866801261901855,
          2.3892199993133545,
          2.3917617797851562,
          2.3943042755126953,
          2.396848440170288,
          2.3993937969207764,
          2.40194034576416,
          2.4044888019561768,
          2.4070382118225098,
          2.4095892906188965,
          2.4121413230895996,
          2.4146947860717773,
          2.4172496795654297,
          2.4198057651519775,
          2.42236328125,
          2.424922227859497,
          2.4274823665618896,
          2.430044412612915,
          2.4326069355010986,
          2.435171604156494,
          2.437737464904785,
          2.4403045177459717,
          2.4428727626800537,
          2.4454424381256104,
          2.4480133056640625,
          2.4505860805511475,
          2.453160285949707,
          2.455734968185425,
          2.4583117961883545,
          2.4608895778656006,
          2.463468313217163,
          2.4660491943359375,
          2.468630790710449,
          2.4712140560150146,
          2.4737985134124756,
          2.4763848781585693,
          2.4789719581604004,
          2.4815609455108643,
          2.4841506481170654,
          2.4867422580718994,
          2.48933482170105,
          2.491929292678833,
          2.4945242404937744,
          2.4971210956573486,
          2.4997189044952393,
          2.5023181438446045,
          2.5049192905426025,
          2.507521867752075,
          2.510124921798706,
          2.512730121612549,
          2.515336036682129,
          2.5179436206817627,
          2.520552396774292,
          2.523162603378296,
          2.5257744789123535,
          2.5283877849578857,
          2.5310018062591553,
          2.5336177349090576,
          2.536234140396118,
          2.5388529300689697,
          2.5414724349975586,
          2.544093608856201,
          2.5467159748077393,
          2.549339532852173,
          2.5519649982452393,
          2.5545918941497803,
          2.5572192668914795,
          2.5598485469818115,
          2.562479019165039,
          2.565110921859741,
          2.567744493484497,
          2.570378541946411,
          2.573014736175537,
          2.5756516456604004,
          2.5782904624938965,
          2.580930471420288,
          2.5835721492767334,
          2.586214780807495,
          2.5888586044311523,
          2.591503858566284,
          2.5941505432128906,
          2.5967986583709717,
          2.5994484424591064,
          2.6020994186401367,
          2.6047515869140625,
          2.607404947280884,
          2.6100597381591797,
          2.612715721130371,
          2.615373373031616,
          2.618032217025757,
          2.620692253112793,
          2.6233537197113037,
          2.626016616821289,
          2.6286816596984863,
          2.631347179412842,
          2.634014129638672,
          2.6366825103759766,
          2.6393520832061768,
          2.6420233249664307,
          2.64469575881958,
          2.647369384765625,
          2.6500449180603027,
          2.6527209281921387,
          2.6553988456726074,
          2.6580777168273926,
          2.6607584953308105,
          2.663440227508545,
          2.666123390197754,
          2.6688082218170166,
          2.6714937686920166,
          2.6741812229156494,
          2.676870107650757,
          2.6795597076416016,
          2.682251214981079,
          2.684943914413452,
          2.6876378059387207,
          2.690333127975464,
          2.6930301189422607,
          2.695727825164795,
          2.698427438735962,
          2.7011282444000244,
          2.7038307189941406,
          2.706533193588257,
          2.7092387676239014,
          2.711944818496704,
          2.7146522998809814,
          2.7173614501953125,
          2.720071315765381,
          2.722783088684082,
          2.725496530532837,
          2.728210210800171,
          2.730926275253296,
          2.733643054962158,
          2.736361265182495,
          2.7390809059143066,
          2.7418019771575928,
          2.7445242404937744,
          2.7472479343414307,
          2.7499728202819824,
          2.752700090408325,
          2.755427360534668,
          2.7581567764282227,
          2.7608871459960938,
          2.7636189460754395,
          2.7663521766662598,
          2.7690865993499756,
          2.771822452545166,
          2.7745602130889893,
          2.7772979736328125,
          2.780038595199585,
          2.7827799320220947,
          2.7855224609375,
          2.78826642036438,
          2.7910118103027344,
          2.7937586307525635,
          2.796506404876709,
          2.7992560863494873,
          2.8020071983337402,
          2.8047587871551514,
          2.8075125217437744,
          2.810267210006714,
          2.813023328781128,
          2.8157806396484375,
          2.818539619445801,
          2.8212995529174805,
          2.824061870574951,
          2.8268239498138428,
          2.8295888900756836,
          2.8323545455932617,
          2.8351213932037354,
          2.8378896713256836,
          2.8406591415405273,
          2.8434300422668457,
          2.8462023735046387,
          2.8489761352539062,
          2.8517513275146484,
          2.854527473449707,
          2.8573057651519775,
          2.8600850105285645,
          2.8628652095794678,
          2.865647077560425,
          2.8684301376342773,
          2.8712146282196045,
          2.8740007877349854,
          2.8767879009246826,
          2.8795769214630127,
          2.882366418838501,
          2.885157823562622,
          2.8879504203796387,
          2.89074444770813,
          2.8935396671295166,
          2.896336317062378,
          2.8991341590881348,
          2.9019343852996826,
          2.9047341346740723,
          2.9075369834899902,
          2.9103403091430664,
          2.913145065307617,
          2.9159510135650635,
          2.9187583923339844,
          2.92156720161438,
          2.92437744140625,
          2.927189350128174,
          2.930001974105835,
          2.93281626701355,
          2.93563175201416,
          2.938448905944824,
          2.941267251968384,
          2.944086790084839,
          2.9469077587127686,
          2.9497299194335938,
          2.9525539875030518,
          2.955378532409668,
          2.9582056999206543,
          2.9610331058502197,
          2.963862419128418,
          2.9666926860809326,
          2.969524621963501,
          2.9723575115203857,
          2.975192070007324,
          2.978027820587158,
          2.980865240097046,
          2.983703374862671,
          2.986544132232666,
          2.9893853664398193,
          2.992227792739868,
          2.9950716495513916,
          2.9979169368743896,
          3.000763416290283,
          3.0036113262176514,
          3.006460666656494,
          3.009312152862549,
          3.0121636390686035,
          3.015017509460449,
          3.0178720951080322,
          3.020728349685669,
          3.023585557937622,
          3.026444435119629,
          3.0293045043945312,
          3.0321667194366455,
          3.0350286960601807,
          3.037893772125244,
          3.0407583713531494,
          3.043626070022583,
          3.046494245529175,
          3.049363851547241,
          3.052234649658203,
          3.0551068782806396,
          3.057981014251709,
          3.0608558654785156,
          3.063732147216797,
          3.0666098594665527,
          3.0694892406463623,
          3.072369337081909,
          3.075251340866089,
          3.078134298324585,
          3.0810189247131348,
          3.083904504776001,
          3.086791753768921,
          3.0896809101104736,
          3.0925700664520264,
          3.0954620838165283,
          3.0983545780181885,
          3.101248264312744,
          3.1041436195373535,
          3.1070401668548584,
          3.109938144683838,
          3.112837791442871,
          3.1157379150390625,
          3.118640661239624,
          3.121544122695923,
          3.124448776245117,
          3.127354860305786,
          3.1302621364593506,
          3.1331708431243896,
          3.1360809803009033,
          3.1389923095703125,
          3.1419055461883545,
          3.1448192596435547,
          3.147735595703125,
          3.1506524085998535,
          3.1535706520080566,
          3.1564900875091553,
          3.1594109535217285,
          3.1623332500457764,
          3.165257692337036,
          3.1681816577911377,
          3.1711089611053467,
          3.1740360260009766,
          3.1769649982452393,
          3.1798958778381348,
          3.1828272342681885,
          3.185760498046875,
          3.1886954307556152,
          3.1916308403015137,
          3.194568634033203,
          3.1975061893463135,
          3.200446844100952,
          3.203387975692749,
          3.2063305377960205,
          3.2092742919921875,
          3.212219476699829,
          3.2151660919189453,
          3.2181143760681152,
          3.2210633754730225,
          3.2240142822265625,
          3.226966381072998,
          3.229919672012329,
          3.232874631881714,
          3.235830545425415,
          3.23878812789917,
          3.241746664047241,
          3.244706869125366,
          3.247668981552124,
          3.2506308555603027,
          3.2535958290100098,
          3.256561279296875,
          3.259528160095215,
          3.26249623298645,
          3.26546573638916,
          3.2684366703033447,
          3.271409034729004,
          3.2743828296661377,
          3.277357339859009,
          3.280333995819092,
          3.2833120822906494,
          3.2862911224365234,
          3.289271354675293,
          3.292253017425537,
          3.295236110687256,
          3.29822039604187,
          3.301206588745117,
          3.3041932582855225,
          3.3071820735931396,
          3.3101718425750732,
          3.3131635189056396,
          3.3161559104919434,
          3.3191492557525635,
          3.3221449851989746,
          3.325141429901123,
          3.328139305114746,
          3.3311386108398438,
          3.334139108657837,
          3.337141990661621,
          3.3401453495025635,
          3.343149423599243,
          3.3461554050445557,
          3.349163293838501,
          3.3521718978881836,
          3.355181932449341,
          3.3581933975219727,
          3.3612060546875,
          3.364220142364502,
          3.3672356605529785,
          3.370253324508667,
          3.3732714653015137,
          3.376291036605835,
          3.3793118000030518,
          3.382333993911743,
          3.385357618331909,
          3.3883824348449707,
          3.391409158706665,
          3.3944365978240967,
          3.397465705871582,
          3.400496006011963,
          3.4035279750823975,
          3.4065611362457275,
          3.409595489501953,
          3.412631034851074,
          3.415668249130249,
          3.4187066555023193,
          3.421746253967285,
          3.424788236618042,
          3.427830696105957,
          3.4308745861053467,
          3.433919668197632,
          3.4369661808013916,
          3.440014123916626,
          3.443063259124756,
          3.4461138248443604,
          3.4491662979125977,
          3.452219009399414,
          3.4552736282348633,
          3.4583306312561035,
          3.461387872695923,
          3.464446544647217,
          3.4675066471099854,
          3.4705679416656494,
          3.473630666732788,
          3.4766948223114014,
          3.4797606468200684,
          3.4828274250030518,
          3.4858953952789307,
          3.4889655113220215,
          3.4920363426208496,
          3.4951083660125732,
          3.4981822967529297,
          3.5012567043304443,
          3.504333019256592,
          3.5074105262756348,
          3.5104904174804688,
          3.513570785522461,
          3.5166523456573486,
          3.5197348594665527,
          3.522819757461548,
          3.5259053707122803,
          3.5289924144744873,
          3.532081127166748,
          3.5351710319519043,
          3.538261651992798,
          3.541353940963745,
          3.5444488525390625,
          3.547544002532959,
          3.550640344619751,
          3.5537381172180176,
          3.556837320327759,
          3.5599379539489746,
          3.563039779663086,
          3.56614351272583,
          3.5692481994628906,
          3.5723540782928467,
          3.5754618644714355,
          3.578570604324341,
          3.5816805362701416,
          3.584791898727417,
          3.587904930114746,
          3.5910186767578125,
          3.5941340923309326,
          3.5972516536712646,
          3.600369691848755,
          3.6034891605377197,
          3.606610059738159,
          3.609732151031494,
          3.6128556728363037,
          3.615980625152588,
          3.6191067695617676,
          3.6222352981567383,
          3.62536358833313,
          3.6284940242767334,
          3.6316261291503906,
          3.634758949279785,
          3.6378931999206543,
          3.641028881072998,
          3.6441659927368164,
          3.6473042964935303,
          3.6504440307617188,
          3.6535861492156982,
          3.6567280292510986,
          3.65987229347229,
          3.6630170345306396,
          3.666163921356201,
          3.669311761856079,
          3.6724607944488525,
          3.675611734390259,
          3.6787636280059814,
          3.6819164752960205,
          3.6850714683532715,
          3.688227891921997,
          3.691385269165039,
          3.6945438385009766,
          3.6977038383483887,
          3.7008650302886963,
          3.7040278911590576,
          3.7071919441223145,
          3.710358142852783,
          3.713524341583252,
          3.7166924476623535,
          3.7198615074157715,
          3.7230331897735596,
          3.726205348968506,
          3.7293789386749268,
          3.732553720474243,
          3.735729932785034,
          3.7389073371887207,
          3.742086410522461,
          3.745266914367676,
          3.7484490871429443,
          3.75163197517395,
          3.7548162937164307,
          3.7580020427703857,
          3.7611889839172363,
          3.7643773555755615,
          3.7675673961639404,
          3.770758628845215,
          3.7739508152008057,
          3.7771451473236084,
          3.7803401947021484,
          3.783536672592163,
          3.7867345809936523,
          3.789933681488037,
          3.7931342124938965,
          3.7963359355926514,
          3.7995402812957764,
          3.8027443885803223,
          3.805950164794922,
          3.809157371520996,
          3.812366485595703,
          3.8155765533447266,
          3.8187878131866455,
          3.822000503540039,
          3.8252148628234863,
          3.828429937362671,
          3.831646680831909,
          3.834865093231201,
          3.8380849361419678,
          3.841305732727051,
          3.84452748298645,
          3.8477513790130615,
          3.8509762287139893,
          3.8542022705078125,
          3.8574302196502686,
          3.860659122467041,
          3.863889455795288,
          3.8671209812164307,
          3.870354413986206,
          3.873588800430298,
          3.876824378967285,
          3.8800618648529053,
          3.8832995891571045,
          3.8865392208099365,
          3.8897812366485596,
          3.893023729324341,
          3.8962669372558594,
          3.8995120525360107,
          3.902758836746216,
          3.9060068130493164,
          3.9092557430267334,
          3.912506341934204,
          3.9157586097717285,
          3.9190118312835693,
          3.9222660064697266,
          3.9255218505859375,
          3.9287800788879395,
          3.9320385456085205,
          3.935297966003418,
          3.9385597705841064,
          3.9418225288391113,
          3.9450864791870117,
          3.9483518600463867,
          3.9516189098358154,
          3.9548871517181396,
          3.9581563472747803,
          3.961427688598633,
          3.9646997451782227,
          3.967973232269287,
          3.9712483882904053,
          3.974524736404419,
          3.97780179977417,
          3.981081008911133,
          3.9843616485595703,
          3.987643241882324,
          3.9909257888793945,
          3.9942104816436768,
          3.9974961280822754,
          4.0007829666137695,
          4.004071235656738,
          4.007361888885498,
          4.010653018951416,
          4.01394510269165,
          4.017238140106201,
          4.020534038543701,
          4.023830413818359,
          4.027128219604492,
          4.0304274559021,
          4.033727645874023,
          4.03702974319458,
          4.040332794189453,
          4.043638229370117,
          4.0469441413879395,
          4.050251483917236,
          4.053560256958008,
          4.056869983673096,
          4.060181140899658,
          4.063493728637695,
          4.066807746887207,
          4.070123195648193,
          4.073440074920654,
          4.076758861541748,
          4.080078125,
          4.083398818969727,
          4.086720943450928,
          4.0900444984436035,
          4.093369483947754,
          4.096695423126221,
          4.1000237464904785,
          4.1033525466918945,
          4.106681823730469,
          4.110013484954834,
          4.11334753036499,
          4.1166815757751465,
          4.120017051696777,
          4.123353958129883,
          4.126692295074463,
          4.130032062530518,
          4.133372783660889,
          4.136716365814209,
          4.140059947967529,
          4.143404960632324,
          4.146751403808594,
          4.150099277496338,
          4.153448104858398,
          4.156798839569092,
          4.160150527954102,
          4.163503646850586,
          4.166858196258545,
          4.1702141761779785,
          4.173572063446045,
          4.176930904388428,
          4.180290699005127,
          4.183651924133301,
          4.187014579772949,
          4.190378665924072,
          4.193743705749512,
          4.1971116065979,
          4.200479507446289,
          4.203847885131836,
          4.20721960067749,
          4.210591793060303,
          4.213964939117432,
          4.217339992523193,
          4.2207159996032715,
          4.224093437194824,
          4.227472305297852,
          4.2308526039123535,
          4.234234809875488,
          4.2376179695129395,
          4.241002082824707,
          4.244387626647949,
          4.247774600982666,
          4.251163005828857,
          4.254552364349365,
          4.257943630218506,
          4.261336803436279,
          4.2647294998168945,
          4.268125534057617,
          4.27152156829834,
          4.274919509887695,
          4.278318405151367,
          4.281719207763672,
          4.285120964050293,
          4.288524150848389,
          4.291929244995117,
          4.295335292816162,
          4.298742294311523,
          4.302151203155518,
          4.305561065673828,
          4.308972358703613,
          4.312384605407715,
          4.315799713134766,
          4.3192138671875,
          4.322630405426025,
          4.326048374176025,
          4.329468727111816,
          4.332889556884766,
          4.3363118171691895,
          4.33973503112793,
          4.3431596755981445,
          4.346585750579834,
          4.350013256072998,
          4.353443145751953,
          4.356873512268066,
          4.360304832458496,
          4.363736629486084,
          4.367171764373779,
          4.370607376098633,
          4.374044418334961,
          4.3774824142456055,
          4.380922317504883,
          4.384363174438477,
          4.387806415557861,
          4.391250133514404,
          4.394695281982422,
          4.398141384124756,
          4.401589393615723,
          4.405038356781006,
          4.408488750457764,
          4.4119415283203125,
          4.4153947830200195,
          4.418848037719727,
          4.422303676605225,
          4.425762176513672,
          4.429220676422119,
          4.432680606842041,
          4.436141490936279,
          4.43960428237915,
          4.443068027496338,
          4.446533203125,
          4.449999809265137,
          4.4534687995910645,
          4.45693826675415,
          4.460409164428711,
          4.463881015777588,
          4.4673542976379395,
          4.470829010009766,
          4.474305152893066,
          4.477782726287842,
          4.481261253356934,
          4.484741687774658,
          4.488224029541016,
          4.491706848144531,
          4.4951910972595215,
          4.498676776885986,
          4.502163410186768,
          4.505651950836182,
          4.509141445159912,
          4.512633323669434,
          4.516125679016113,
          4.519618034362793,
          4.523114204406738,
          4.526610374450684,
          4.530108451843262,
          4.533607482910156,
          4.537107467651367,
          4.540609359741211,
          4.544112682342529,
          4.547616958618164,
          4.55112361907959,
          4.554630756378174,
          4.558139324188232,
          4.561649322509766,
          4.565160274505615,
          4.568673133850098,
          4.5721869468688965,
          4.57570219039917,
          4.579218864440918,
          4.582736968994141,
          4.586256980895996,
          4.589777946472168,
          4.593299865722656,
          4.596823215484619,
          4.600347995758057,
          4.6038737297058105,
          4.607401371002197,
          4.610930919647217,
          4.614461421966553,
          4.617992877960205,
          4.621525287628174,
          4.625059604644775,
          4.628593921661377,
          4.632132053375244,
          4.635670185089111,
          4.639209747314453,
          4.642751693725586,
          4.6462931632995605,
          4.649836540222168,
          4.653382778167725,
          4.656929016113281,
          4.6604766845703125,
          4.664025783538818,
          4.667575836181641,
          4.671127796173096,
          4.674680709838867,
          4.6782355308532715,
          4.681791305541992,
          4.685349464416504,
          4.688906669616699,
          4.69246768951416,
          4.696028709411621,
          4.699591159820557,
          4.703155040740967,
          4.706721305847168,
          4.710287094116211,
          4.713855743408203,
          4.717424392700195,
          4.720995903015137,
          4.724567890167236,
          4.7281413078308105,
          4.731715679168701,
          4.735292911529541,
          4.7388691902160645,
          4.742447853088379,
          4.746027946472168,
          4.749609470367432,
          4.753193378448486,
          4.756777763366699,
          4.7603631019592285,
          4.763949871063232,
          4.767538070678711,
          4.7711286544799805,
          4.774718761444092,
          4.778310775756836,
          4.781904697418213,
          4.785500526428223,
          4.789095878601074,
          4.792693614959717,
          4.796293258666992,
          4.799893856048584,
          4.803495407104492,
          4.80709981918335,
          4.810702800750732,
          4.814309597015381,
          4.817915916442871,
          4.821525573730469,
          4.825135231018066,
          4.828746318817139,
          4.832359790802002,
          4.835973739624023,
          4.839588165283203,
          4.843204498291016,
          4.846823692321777,
          4.850442886352539,
          4.854063510894775,
          4.857684135437012,
          4.861308574676514,
          4.864933490753174,
          4.86855936050415,
          4.872187614440918,
          4.875815391540527,
          4.879445552825928,
          4.883078098297119,
          4.8867106437683105,
          4.89034366607666,
          4.893980503082275,
          4.897617340087891,
          4.9012556076049805,
          4.904894828796387,
          4.908535957336426,
          4.912178039550781,
          4.915822505950928,
          4.919466495513916,
          4.923113822937012,
          4.926761627197266,
          4.930410385131836,
          4.934061050415039,
          4.937713623046875,
          4.941365718841553,
          4.945021152496338,
          4.948677062988281,
          4.952333927154541,
          4.955991268157959,
          4.959651947021484,
          4.963313102722168,
          4.966975688934326,
          4.970639705657959,
          4.974304676055908,
          4.977972507476807,
          4.981639385223389,
          4.985309600830078,
          4.988980293273926,
          4.992652416229248,
          4.996325492858887
         ],
         "xaxis": "x3",
         "yaxis": "y3"
        },
        {
         "nbinsx": 50,
         "opacity": 0.7,
         "type": "histogram",
         "x": [
          2,
          2.001833438873291,
          2.0036685466766357,
          2.005505323410034,
          2.0073437690734863,
          2.009183883666992,
          2.011025905609131,
          2.012869119644165,
          2.014714479446411,
          2.016561508178711,
          2.0184099674224854,
          2.0202603340148926,
          2.0221123695373535,
          2.023966073989868,
          2.0258214473724365,
          2.0276784896850586,
          2.0295372009277344,
          2.031397819519043,
          2.033259868621826,
          2.0351240634918213,
          2.036989688873291,
          2.0388569831848145,
          2.0407259464263916,
          2.0425965785980225,
          2.044469118118286,
          2.0463433265686035,
          2.0482192039489746,
          2.0500967502593994,
          2.051976203918457,
          2.0538573265075684,
          2.0557401180267334,
          2.057624340057373,
          2.0595107078552246,
          2.06139874458313,
          2.063288450241089,
          2.0651798248291016,
          2.067073106765747,
          2.0689680576324463,
          2.070864677429199,
          2.072763204574585,
          2.0746631622314453,
          2.0765652656555176,
          2.0784685611724854,
          2.080374002456665,
          2.0822811126708984,
          2.0841898918151855,
          2.0861005783081055,
          2.088012933731079,
          2.0899269580841064,
          2.0918428897857666,
          2.0937604904174805,
          2.095679759979248,
          2.0976009368896484,
          2.0995237827301025,
          2.1014485359191895,
          2.10337495803833,
          2.1053032875061035,
          2.1072332859039307,
          2.1091647148132324,
          2.111098289489746,
          2.1130335330963135,
          2.1149706840515137,
          2.1169095039367676,
          2.118849992752075,
          2.1207923889160156,
          2.122736692428589,
          2.124682664871216,
          2.1266300678253174,
          2.128579616546631,
          2.130530834197998,
          2.132483959197998,
          2.134438991546631,
          2.1363956928253174,
          2.1383540630340576,
          2.1403143405914307,
          2.1422765254974365,
          2.144240379333496,
          2.1462059020996094,
          2.1481733322143555,
          2.1501426696777344,
          2.152113676071167,
          2.1540863513946533,
          2.1560611724853516,
          2.1580376625061035,
          2.1600160598754883,
          2.1619961261749268,
          2.163978099822998,
          2.165961742401123,
          2.167947292327881,
          2.1699347496032715,
          2.171923875808716,
          2.173914909362793,
          2.175907850265503,
          2.1779024600982666,
          2.179898977279663,
          2.1818971633911133,
          2.1838972568511963,
          2.185899496078491,
          2.1879031658172607,
          2.189908981323242,
          2.1919164657592773,
          2.1939258575439453,
          2.195936918258667,
          2.1979501247406006,
          2.199965000152588,
          2.201981544494629,
          2.204000234603882,
          2.2060208320617676,
          2.208043098449707,
          2.2100670337677,
          2.2120931148529053,
          2.214120864868164,
          2.2161505222320557,
          2.218182325363159,
          2.2202155590057373,
          2.2222509384155273,
          2.22428822517395,
          2.2263271808624268,
          2.228368043899536,
          2.2304108142852783,
          2.2324554920196533,
          2.234502077102661,
          2.2365503311157227,
          2.238600492477417,
          2.2406527996063232,
          2.242706775665283,
          2.244762659072876,
          2.2468204498291016,
          2.248880386352539,
          2.250941753387451,
          2.253005266189575,
          2.255070686340332,
          2.2571377754211426,
          2.259207010269165,
          2.261277914047241,
          2.2633509635925293,
          2.26542592048645,
          2.267502546310425,
          2.2695813179016113,
          2.2716617584228516,
          2.2737441062927246,
          2.2758283615112305,
          2.2779147624969482,
          2.2800028324127197,
          2.2820932865142822,
          2.2841851711273193,
          2.2862789630889893,
          2.288374900817871,
          2.2904727458953857,
          2.292572259902954,
          2.2946739196777344,
          2.2967774868011475,
          2.2988831996917725,
          2.300990581512451,
          2.3030998706817627,
          2.305211067199707,
          2.3073244094848633,
          2.3094394207000732,
          2.311556577682495,
          2.3136754035949707,
          2.3157966136932373,
          2.3179194927215576,
          2.32004451751709,
          2.322171211242676,
          2.3242998123168945,
          2.326430559158325,
          2.3285632133483887,
          2.330698013305664,
          2.332834482192993,
          2.334972858428955,
          2.337113618850708,
          2.3392558097839355,
          2.341400384902954,
          2.3435468673706055,
          2.3456952571868896,
          2.3478455543518066,
          2.3499977588653564,
          2.352151870727539,
          2.3543083667755127,
          2.356466293334961,
          2.3586268424987793,
          2.3607888221740723,
          2.362952947616577,
          2.365119218826294,
          2.3672873973846436,
          2.369457483291626,
          2.371629476547241,
          2.3738036155700684,
          2.3759796619415283,
          2.3781578540802,
          2.380337953567505,
          2.3825199604034424,
          2.3847038745880127,
          2.386890172958374,
          2.389078140258789,
          2.391268253326416,
          2.393460512161255,
          2.3956544399261475,
          2.397850513458252,
          2.4000487327575684,
          2.4022488594055176,
          2.4044508934020996,
          2.4066553115844727,
          2.4088613986968994,
          2.411069631576538,
          2.4132800102233887,
          2.415492296218872,
          2.4177064895629883,
          2.4199228286743164,
          2.4221413135528564,
          2.4243617057800293,
          2.426584005355835,
          2.4288084506988525,
          2.431035041809082,
          2.4332635402679443,
          2.4354941844940186,
          2.4377267360687256,
          2.4399616718292236,
          2.4421985149383545,
          2.444437265396118,
          2.4466779232025146,
          2.448920726776123,
          2.4511656761169434,
          2.4534127712249756,
          2.4556617736816406,
          2.4579129219055176,
          2.4601662158966064,
          2.462421417236328,
          2.4646787643432617,
          2.4669382572174072,
          2.4691996574401855,
          2.4714629650115967,
          2.473728895187378,
          2.475996494293213,
          2.4782662391662598,
          2.4805381298065186,
          2.48281192779541,
          2.4850881099700928,
          2.487366199493408,
          2.4896464347839355,
          2.4919285774230957,
          2.494213104248047,
          2.496499538421631,
          2.4987881183624268,
          2.5010786056518555,
          2.503371477127075,
          2.5056662559509277,
          2.5079634189605713,
          2.5102622509002686,
          2.512563705444336,
          2.514866828918457,
          2.51717209815979,
          2.519479751586914,
          2.52178955078125,
          2.5241012573242188,
          2.5264151096343994,
          2.528730869293213,
          2.5310492515563965,
          2.533369302749634,
          2.535691738128662,
          2.5380163192749023,
          2.5403428077697754,
          2.5426716804504395,
          2.5450026988983154,
          2.547335624694824,
          2.549670696258545,
          2.5520079135894775,
          2.554347515106201,
          2.5566890239715576,
          2.559032917022705,
          2.5613789558410645,
          2.5637266635894775,
          2.5660769939422607,
          2.5684292316436768,
          2.570783853530884,
          2.5731403827667236,
          2.5754995346069336,
          2.5778603553771973,
          2.580223798751831,
          2.5825886726379395,
          2.584956169128418,
          2.5873258113861084,
          2.58969783782959,
          2.592071771621704,
          2.5944480895996094,
          2.5968263149261475,
          2.5992069244384766,
          2.6015896797180176,
          2.6039745807647705,
          2.6063616275787354,
          2.608750820159912,
          2.61114239692688,
          2.6135358810424805,
          2.615931987762451,
          2.6183300018310547,
          2.62073016166687,
          2.6231327056884766,
          2.625537157058716,
          2.627944231033325,
          2.6303532123565674,
          2.6327643394470215,
          2.6351780891418457,
          2.6375935077667236,
          2.6400115489959717,
          2.6424317359924316,
          2.6448538303375244,
          2.6472787857055664,
          2.649705410003662,
          2.652134656906128,
          2.6545655727386475,
          2.656999111175537,
          2.6594347953796387,
          2.661872625350952,
          2.6643130779266357,
          2.666755437850952,
          2.6691999435424805,
          2.6716468334198,
          2.674095869064331,
          2.6765475273132324,
          2.6790008544921875,
          2.6814568042755127,
          2.68391489982605,
          2.686375379562378,
          2.688838005065918,
          2.691303014755249,
          2.693769931793213,
          2.696239471435547,
          2.6987109184265137,
          2.7011852264404297,
          2.7036612033843994,
          2.70613956451416,
          2.708620548248291,
          2.7111034393310547,
          2.7135889530181885,
          2.716076374053955,
          2.718566417694092,
          2.7210583686828613,
          2.723552703857422,
          2.7260496616363525,
          2.728548526763916,
          2.7310500144958496,
          2.733553409576416,
          2.7360594272613525,
          2.7385671138763428,
          2.7410778999328613,
          2.7435903549194336,
          2.746105670928955,
          2.7486228942871094,
          2.751142978668213,
          2.75366473197937,
          2.7561888694763184,
          2.7587156295776367,
          2.761244535446167,
          2.763775587081909,
          2.7663094997406006,
          2.768845558166504,
          2.771383762359619,
          2.7739243507385254,
          2.7764670848846436,
          2.779012680053711,
          2.781559944152832,
          2.7841098308563232,
          2.7866618633270264,
          2.7892162799835205,
          2.7917733192443848,
          2.794332504272461,
          2.7968943119049072,
          2.7994580268859863,
          2.8020246028900146,
          2.804593086242676,
          2.807164192199707,
          2.80973744392395,
          2.8123130798339844,
          2.8148913383483887,
          2.817471742630005,
          2.820054769515991,
          2.8226397037506104,
          2.8252270221710205,
          2.82781720161438,
          2.830409288406372,
          2.8330042362213135,
          2.8356010913848877,
          2.838200569152832,
          2.8408024311065674,
          2.8434064388275146,
          2.846013307571411,
          2.8486220836639404,
          2.851233720779419,
          2.8538472652435303,
          2.8564634323120117,
          2.8590822219848633,
          2.8617029190063477,
          2.8643264770507812,
          2.8669521808624268,
          2.8695805072784424,
          2.87221097946167,
          2.8748438358306885,
          2.877479076385498,
          2.8801169395446777,
          2.8827571868896484,
          2.8854000568389893,
          2.888044834136963,
          2.8906922340393066,
          2.8933424949645996,
          2.8959946632385254,
          2.8986496925354004,
          2.901306629180908,
          2.9039666652679443,
          2.9066286087036133,
          2.9092929363250732,
          2.9119601249694824,
          2.9146294593811035,
          2.9173014163970947,
          2.919975757598877,
          2.9226527214050293,
          2.9253318309783936,
          2.928013324737549,
          2.930697202682495,
          2.933384418487549,
          2.936073064804077,
          2.938764810562134,
          2.9414587020874023,
          2.944154977798462,
          2.9468541145324707,
          2.9495556354522705,
          2.9522595405578613,
          2.954965591430664,
          2.957674741744995,
          2.960386037826538,
          2.963099479675293,
          2.965816020965576,
          2.9685347080230713,
          2.9712560176849365,
          2.973979949951172,
          2.9767065048217773,
          2.9794349670410156,
          2.982166051864624,
          2.9848997592926025,
          2.9876363277435303,
          2.990375280380249,
          2.9931163787841797,
          2.9958600997924805,
          2.9986066818237305,
          3.0013554096221924,
          3.0041069984436035,
          3.0068607330322266,
          3.0096170902252197,
          3.012376308441162,
          3.0151374340057373,
          3.017901659011841,
          3.0206682682037354,
          3.023437023162842,
          3.0262088775634766,
          3.0289828777313232,
          3.031759738922119,
          3.034538984298706,
          3.037320613861084,
          3.040104866027832,
          3.0428919792175293,
          3.0456814765930176,
          3.048473358154297,
          3.0512678623199463,
          3.054065227508545,
          3.0568647384643555,
          3.0596671104431152,
          3.062471866607666,
          3.065279245376587,
          3.068089246749878,
          3.070901870727539,
          3.0737171173095703,
          3.0765347480773926,
          3.079354763031006,
          3.0821778774261475,
          3.085003137588501,
          3.087831497192383,
          3.0906620025634766,
          3.0934951305389404,
          3.0963311195373535,
          3.0991697311401367,
          3.102010726928711,
          3.104854106903076,
          3.1077003479003906,
          3.1105494499206543,
          3.11340069770813,
          3.116255044937134,
          3.1191115379333496,
          3.1219706535339355,
          3.12483286857605,
          3.127697229385376,
          3.1305646896362305,
          3.133434534072876,
          3.1363067626953125,
          3.1391820907592773,
          3.1420600414276123,
          3.144940137863159,
          3.1478230953216553,
          3.1507084369659424,
          3.153597116470337,
          3.1564881801605225,
          3.159381628036499,
          3.1622776985168457,
          3.1651768684387207,
          3.1680781841278076,
          3.1709823608398438,
          3.173888921737671,
          3.1767988204956055,
          3.179710865020752,
          3.1826255321502686,
          3.1855432987213135,
          3.1884634494781494,
          3.1913864612579346,
          3.1943118572235107,
          3.1972403526306152,
          3.2001712322235107,
          3.2031047344207764,
          3.2060413360595703,
          3.208980083465576,
          3.2119216918945312,
          3.2148663997650146,
          3.217813491821289,
          3.2207632064819336,
          3.2237155437469482,
          3.226670742034912,
          3.229628801345825,
          3.2325897216796875,
          3.2355527877807617,
          3.238518714904785,
          3.241487741470337,
          3.244459629058838,
          3.247433662414551,
          3.250410318374634,
          3.253390312194824,
          3.2563726902008057,
          3.2593576908111572,
          3.262345790863037,
          3.265336275100708,
          3.268329381942749,
          3.2713253498077393,
          3.274324417114258,
          3.2773263454437256,
          3.2803304195404053,
          3.283337354660034,
          3.2863476276397705,
          3.289360284805298,
          3.2923755645751953,
          3.295393705368042,
          3.298414468765259,
          3.301438331604004,
          3.30446457862854,
          3.3074941635131836,
          3.310525894165039,
          3.3135604858398438,
          3.316598415374756,
          3.319638729095459,
          3.3226819038391113,
          3.325727701187134,
          3.3287768363952637,
          3.3318281173706055,
          3.3348822593688965,
          3.337939739227295,
          3.3409993648529053,
          3.344061851501465,
          3.347127676010132,
          3.350196361541748,
          3.3532674312591553,
          3.3563411235809326,
          3.359417676925659,
          3.362497568130493,
          3.365579843521118,
          3.3686654567718506,
          3.371753215789795,
          3.374844551086426,
          3.3779380321502686,
          3.3810346126556396,
          3.384134292602539,
          3.3872363567352295,
          3.390341281890869,
          3.393449544906616,
          3.3965601921081543,
          3.3996739387512207,
          3.4027903079986572,
          3.405909538269043,
          3.409032106399536,
          3.4121572971343994,
          3.415285110473633,
          3.4184157848358154,
          3.4215493202209473,
          3.4246866703033447,
          3.427825927734375,
          3.4309680461883545,
          3.434113025665283,
          3.4372613430023193,
          3.4404122829437256,
          3.443565845489502,
          3.446722984313965,
          3.4498822689056396,
          3.453045129776001,
          3.4562103748321533,
          3.459378957748413,
          3.462550163269043,
          3.465724229812622,
          3.4689009189605713,
          3.472081184387207,
          3.475264310836792,
          3.478450059890747,
          3.4816386699676514,
          3.484830141067505,
          3.488024950027466,
          3.4912221431732178,
          3.4944229125976562,
          3.4976260662078857,
          3.5008327960968018,
          3.504041910171509,
          3.507254123687744,
          3.5104691982269287,
          3.5136871337890625,
          3.5169084072113037,
          3.520132303237915,
          3.5233592987060547,
          3.5265891551971436,
          3.52982234954834,
          3.533057928085327,
          3.5362966060638428,
          3.539538621902466,
          3.542782783508301,
          3.5460307598114014,
          3.549281120300293,
          3.5525355339050293,
          3.5557916164398193,
          3.559051513671875,
          3.5623137950897217,
          3.565579414367676,
          3.568848133087158,
          3.572119951248169,
          3.57539439201355,
          3.578671932220459,
          3.5819528102874756,
          3.585236072540283,
          3.5885231494903564,
          3.5918126106262207,
          3.595104932785034,
          3.598400831222534,
          3.6016998291015625,
          3.605001449584961,
          3.6083059310913086,
          3.6116139888763428,
          3.614924192428589,
          3.618238687515259,
          3.6215555667877197,
          3.624875545501709,
          3.6281979084014893,
          3.6315243244171143,
          3.6348536014556885,
          3.6381850242614746,
          3.6415205001831055,
          3.6448590755462646,
          3.648200035095215,
          3.6515438556671143,
          3.6548914909362793,
          3.6582422256469727,
          3.6615960597991943,
          3.664952039718628,
          3.6683120727539062,
          3.671674966812134,
          3.6750407218933105,
          3.6784095764160156,
          3.681781768798828,
          3.685157299041748,
          3.688534736633301,
          3.6919164657592773,
          3.695300579071045,
          3.698688507080078,
          3.7020788192749023,
          3.705472946166992,
          3.708869457244873,
          3.7122693061828613,
          3.715672731399536,
          3.71907901763916,
          3.7224881649017334,
          3.725900411605835,
          3.729316473007202,
          3.7327349185943604,
          3.736156940460205,
          3.739581823348999,
          3.7430098056793213,
          3.746441125869751,
          3.749875545501709,
          3.7533133029937744,
          3.75675368309021,
          3.760197401046753,
          3.7636446952819824,
          3.767094850540161,
          3.7705483436584473,
          3.7740046977996826,
          3.7774641513824463,
          3.7809271812438965,
          3.784393072128296,
          3.787862539291382,
          3.791334390640259,
          3.7948100566864014,
          3.7982890605926514,
          3.8017709255218506,
          3.805255889892578,
          3.808744430541992,
          3.8122363090515137,
          3.815730333328247,
          3.819228410720825,
          3.8227298259735107,
          3.8262341022491455,
          3.8297414779663086,
          3.833252429962158,
          3.8367667198181152,
          3.8402836322784424,
          3.843803882598877,
          3.847327470779419,
          3.8508546352386475,
          3.854384422302246,
          3.8579182624816895,
          3.861454486846924,
          3.8649942874908447,
          3.868537187576294,
          3.8720836639404297,
          3.875633478164673,
          3.8791861534118652,
          3.882742166519165,
          3.8863017559051514,
          3.889864206314087,
          3.893429756164551,
          3.8969993591308594,
          3.900571584701538,
          3.9041473865509033,
          3.907726287841797,
          3.911308765411377,
          3.9148941040039062,
          3.918482780456543,
          3.9220752716064453,
          3.925670862197876,
          3.929269313812256,
          3.932871103286743,
          3.936476707458496,
          3.9400851726531982,
          3.943696975708008,
          3.9473118782043457,
          3.9509313106536865,
          3.954552412033081,
          3.9581780433654785,
          3.961805820465088,
          3.9654383659362793,
          3.9690732955932617,
          3.9727115631103516,
          3.976353168487549,
          3.97999906539917,
          3.983647584915161,
          3.9872992038726807,
          3.9909541606903076,
          3.9946129322052,
          3.998274803161621,
          4.00193977355957,
          4.005608558654785,
          4.009281158447266,
          4.012956142425537,
          4.016634464263916,
          4.020317077636719,
          4.0240020751953125,
          4.027690887451172,
          4.031383514404297,
          4.035079479217529,
          4.038778305053711,
          4.04248046875,
          4.046186447143555,
          4.049895286560059,
          4.053608417510986,
          4.057323932647705,
          4.061043739318848,
          4.0647664070129395,
          4.068492412567139,
          4.072221755981445,
          4.075955390930176,
          4.079691410064697,
          4.083431243896484,
          4.087174892425537,
          4.090921878814697,
          4.094671249389648,
          4.098425388336182,
          4.102182388305664,
          4.105942726135254,
          4.109706878662109,
          4.113474369049072,
          4.117245197296143,
          4.12101936340332,
          4.124797344207764,
          4.1285786628723145,
          4.132363319396973,
          4.136151313781738,
          4.139942646026611,
          4.143738746643066,
          4.147536754608154,
          4.151339054107666,
          4.155144214630127,
          4.158953666687012,
          4.162765979766846,
          4.1665825843811035,
          4.170401573181152,
          4.174224376678467,
          4.178051471710205,
          4.181881427764893,
          4.185715198516846,
          4.189551830291748,
          4.193392276763916,
          4.19723653793335,
          4.201084136962891,
          4.204935550689697,
          4.208790302276611,
          4.212648391723633,
          4.21651029586792,
          4.2203755378723145,
          4.224244594573975,
          4.228116989135742,
          4.231992721557617,
          4.235872745513916,
          4.239755153656006,
          4.243642330169678,
          4.247532367706299,
          4.251425743103027,
          4.25532341003418,
          4.259224891662598,
          4.263128280639648,
          4.2670369148254395,
          4.270948886871338,
          4.2748637199401855,
          4.278782367706299,
          4.282705307006836,
          4.2866315841674805,
          4.290560245513916,
          4.294493675231934,
          4.298430919647217,
          4.302371025085449,
          4.306314945220947,
          4.310262203216553,
          4.31421422958374,
          4.318169116973877,
          4.322126865386963,
          4.326089382171631,
          4.330055236816406,
          4.334023952484131,
          4.3379974365234375,
          4.341973781585693,
          4.345954895019531,
          4.34993839263916,
          4.353926181793213,
          4.357917308807373,
          4.361912250518799,
          4.36591100692749,
          4.369913101196289,
          4.373919486999512,
          4.377928733825684,
          4.381942272186279,
          4.385959148406982,
          4.389980316162109,
          4.3940043449401855,
          4.3980326652526855,
          4.402064323425293,
          4.406099796295166,
          4.4101386070251465,
          4.414181232452393,
          4.4182281494140625,
          4.422277927398682,
          4.426332473754883,
          4.430389881134033,
          4.434451580047607,
          4.438516139984131,
          4.442584991455078,
          4.446657657623291,
          4.4507341384887695,
          4.454813480377197,
          4.458898067474365,
          4.462985515594482,
          4.467076778411865,
          4.4711713790893555,
          4.4752702713012695,
          4.479372978210449,
          4.483478546142578,
          4.487588882446289,
          4.491703033447266,
          4.495820999145508,
          4.499941825866699,
          4.5040669441223145,
          4.5081963539123535,
          4.512328147888184,
          4.516465187072754,
          4.52060604095459,
          4.524750232696533,
          4.528897285461426,
          4.533049583435059,
          4.537204742431641,
          4.541363716125488,
          4.545526504516602,
          4.549694061279297,
          4.553864479064941,
          4.558039665222168,
          4.562217712402344,
          4.566400051116943,
          4.57058572769165,
          4.574775695800781,
          4.578969478607178,
          4.58316707611084,
          4.587368965148926,
          4.591573715209961,
          4.595783233642578,
          4.599996089935303,
          4.604213237762451,
          4.608433723449707,
          4.612658500671387,
          4.616887092590332,
          4.621119022369385,
          4.6253557205200195,
          4.629595756530762,
          4.633840084075928,
          4.638086795806885,
          4.642339706420898,
          4.646595001220703,
          4.650854587554932,
          4.655117511749268,
          4.659385681152344,
          4.663657188415527,
          4.66793155670166,
          4.672211170196533,
          4.676494598388672,
          4.680781364440918,
          4.68507194519043,
          4.689366340637207,
          4.693665504455566,
          4.69796895980835,
          4.702274799346924,
          4.70658540725708,
          4.71090030670166,
          4.715219020843506,
          4.719541072845459,
          4.723867893218994,
          4.728198528289795,
          4.732532024383545,
          4.736870765686035,
          4.741212844848633,
          4.7455596923828125,
          4.7499098777771,
          4.7542643547058105,
          4.758622646331787,
          4.762984275817871,
          4.767351150512695,
          4.771721839904785,
          4.776095867156982,
          4.780473709106445,
          4.78485631942749,
          4.789242744445801,
          4.793633460998535,
          4.798027515411377,
          4.802426338195801,
          4.806828498840332,
          4.811234474182129,
          4.815645694732666,
          4.820059776306152,
          4.8244781494140625,
          4.828900337219238,
          4.833327770233154,
          4.837758541107178,
          4.842193126678467,
          4.84663200378418,
          4.851075172424316,
          4.855522155761719,
          4.859972953796387,
          4.8644280433654785,
          4.868887901306152,
          4.873351097106934,
          4.877818584442139,
          4.882289886474609,
          4.886765956878662,
          4.891245365142822,
          4.895729064941406,
          4.900217056274414,
          4.904709815979004,
          4.909205436706543,
          4.913705825805664,
          4.918210506439209,
          4.9227190017700195,
          4.927231311798096,
          4.931748390197754,
          4.936269760131836,
          4.940794944763184,
          4.945323944091797,
          4.949857711791992,
          4.954394817352295,
          4.958937168121338,
          4.963481903076172,
          4.968032360076904,
          4.9725871086120605,
          4.977145195007324,
          4.981707572937012,
          4.986274719238281,
          4.990845680236816,
          4.995420455932617
         ],
         "xaxis": "x4",
         "yaxis": "y4"
        }
       ],
       "layout": {
        "annotations": [
         {
          "font": {
           "size": 16
          },
          "showarrow": false,
          "text": "Uniform",
          "x": 0.225,
          "xanchor": "center",
          "xref": "paper",
          "y": 1,
          "yanchor": "bottom",
          "yref": "paper"
         },
         {
          "font": {
           "size": 16
          },
          "showarrow": false,
          "text": "Linear in Disparity",
          "x": 0.775,
          "xanchor": "center",
          "xref": "paper",
          "y": 1,
          "yanchor": "bottom",
          "yref": "paper"
         },
         {
          "font": {
           "size": 16
          },
          "showarrow": false,
          "text": "Square Root",
          "x": 0.225,
          "xanchor": "center",
          "xref": "paper",
          "y": 0.45,
          "yanchor": "bottom",
          "yref": "paper"
         },
         {
          "font": {
           "size": 16
          },
          "showarrow": false,
          "text": "Log Sampler",
          "x": 0.775,
          "xanchor": "center",
          "xref": "paper",
          "y": 0.45,
          "yanchor": "bottom",
          "yref": "paper"
         }
        ],
        "height": 700,
        "hovermode": false,
        "margin": {
         "b": 20,
         "l": 20,
         "r": 20,
         "t": 50
        },
        "showlegend": false,
        "template": {
         "data": {
          "bar": [
           {
            "error_x": {
             "color": "#2a3f5f"
            },
            "error_y": {
             "color": "#2a3f5f"
            },
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "bar"
           }
          ],
          "barpolar": [
           {
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "barpolar"
           }
          ],
          "carpet": [
           {
            "aaxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "baxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "type": "carpet"
           }
          ],
          "choropleth": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "choropleth"
           }
          ],
          "contour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "contour"
           }
          ],
          "contourcarpet": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "contourcarpet"
           }
          ],
          "heatmap": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "heatmap"
           }
          ],
          "heatmapgl": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "heatmapgl"
           }
          ],
          "histogram": [
           {
            "marker": {
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "histogram"
           }
          ],
          "histogram2d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2d"
           }
          ],
          "histogram2dcontour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2dcontour"
           }
          ],
          "mesh3d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "mesh3d"
           }
          ],
          "parcoords": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "parcoords"
           }
          ],
          "pie": [
           {
            "automargin": true,
            "type": "pie"
           }
          ],
          "scatter": [
           {
            "fillpattern": {
             "fillmode": "overlay",
             "size": 10,
             "solidity": 0.2
            },
            "type": "scatter"
           }
          ],
          "scatter3d": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatter3d"
           }
          ],
          "scattercarpet": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattercarpet"
           }
          ],
          "scattergeo": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergeo"
           }
          ],
          "scattergl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergl"
           }
          ],
          "scattermapbox": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermapbox"
           }
          ],
          "scatterpolar": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolar"
           }
          ],
          "scatterpolargl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolargl"
           }
          ],
          "scatterternary": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterternary"
           }
          ],
          "surface": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "surface"
           }
          ],
          "table": [
           {
            "cells": {
             "fill": {
              "color": "#EBF0F8"
             },
             "line": {
              "color": "white"
             }
            },
            "header": {
             "fill": {
              "color": "#C8D4E3"
             },
             "line": {
              "color": "white"
             }
            },
            "type": "table"
           }
          ]
         },
         "layout": {
          "annotationdefaults": {
           "arrowcolor": "#2a3f5f",
           "arrowhead": 0,
           "arrowwidth": 1
          },
          "autotypenumbers": "strict",
          "coloraxis": {
           "colorbar": {
            "outlinewidth": 0,
            "ticks": ""
           }
          },
          "colorscale": {
           "diverging": [
            [
             0,
             "#8e0152"
            ],
            [
             0.1,
             "#c51b7d"
            ],
            [
             0.2,
             "#de77ae"
            ],
            [
             0.3,
             "#f1b6da"
            ],
            [
             0.4,
             "#fde0ef"
            ],
            [
             0.5,
             "#f7f7f7"
            ],
            [
             0.6,
             "#e6f5d0"
            ],
            [
             0.7,
             "#b8e186"
            ],
            [
             0.8,
             "#7fbc41"
            ],
            [
             0.9,
             "#4d9221"
            ],
            [
             1,
             "#276419"
            ]
           ],
           "sequential": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ],
           "sequentialminus": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ]
          },
          "colorway": [
           "#636efa",
           "#EF553B",
           "#00cc96",
           "#ab63fa",
           "#FFA15A",
           "#19d3f3",
           "#FF6692",
           "#B6E880",
           "#FF97FF",
           "#FECB52"
          ],
          "font": {
           "color": "#2a3f5f"
          },
          "geo": {
           "bgcolor": "white",
           "lakecolor": "white",
           "landcolor": "#E5ECF6",
           "showlakes": true,
           "showland": true,
           "subunitcolor": "white"
          },
          "hoverlabel": {
           "align": "left"
          },
          "hovermode": "closest",
          "mapbox": {
           "style": "light"
          },
          "paper_bgcolor": "white",
          "plot_bgcolor": "#E5ECF6",
          "polar": {
           "angularaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "radialaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "scene": {
           "xaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "yaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "zaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           }
          },
          "shapedefaults": {
           "line": {
            "color": "#2a3f5f"
           }
          },
          "ternary": {
           "aaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "baxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "caxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "title": {
           "x": 0.05
          },
          "xaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          },
          "yaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          }
         }
        },
        "xaxis": {
         "anchor": "y",
         "domain": [
          0,
          0.45
         ],
         "matches": "x3",
         "showticklabels": false
        },
        "xaxis2": {
         "anchor": "y2",
         "domain": [
          0.55,
          1
         ],
         "matches": "x4",
         "showticklabels": false
        },
        "xaxis3": {
         "anchor": "y3",
         "domain": [
          0,
          0.45
         ],
         "title": {
          "text": "Distance"
         }
        },
        "xaxis4": {
         "anchor": "y4",
         "domain": [
          0.55,
          1
         ],
         "title": {
          "text": "Distance"
         }
        },
        "yaxis": {
         "anchor": "x",
         "domain": [
          0.55,
          1
         ],
         "range": [
          0,
          80
         ],
         "title": {
          "text": "# Samples"
         }
        },
        "yaxis2": {
         "anchor": "x2",
         "domain": [
          0.55,
          1
         ],
         "matches": "y",
         "range": [
          0,
          80
         ],
         "showticklabels": false
        },
        "yaxis3": {
         "anchor": "x3",
         "domain": [
          0,
          0.45
         ],
         "range": [
          0,
          80
         ],
         "title": {
          "text": "# Samples"
         }
        },
        "yaxis4": {
         "anchor": "x4",
         "domain": [
          0,
          0.45
         ],
         "matches": "y3",
         "range": [
          0,
          80
         ],
         "showticklabels": false
        }
       }
      },
      "text/html": [
       "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# COLLAPSED\n", "import torch\n", "from nerfstudio.cameras.rays import RayBundle\n", "from nerfstudio.model_components import ray_sampler\n", "import plotly.graph_objects as go\n", "from plotly.subplots import make_subplots\n", "\n", "\n", "num_samples = 1000\n", "near = 2\n", "far = 5\n", "train_stratified = False\n", "\n", "samplers = [\n", " ray_sampler.UniformSampler,\n", " ray_sampler.LinearDisparitySampler,\n", " ray_sampler.SqrtSampler,\n", " ray_sampler.LogSampler,\n", "]\n", "\n", "fig = make_subplots(\n", " rows=2,\n", " cols=2,\n", " subplot_titles=(\"Uniform\", \"Linear in Disparity\", \"Square Root\", \"Log Sampler\"),\n", " shared_xaxes=True,\n", " shared_yaxes=True,\n", " vertical_spacing=0.1,\n", ")\n", "\n", "for i, Sampler in enumerate(samplers):\n", " sampler = Sampler(num_samples=num_samples, train_stratified=train_stratified)\n", "\n", " ray_bundle = RayBundle(\n", " origins=torch.ones([1, 3]),\n", " directions=torch.ones([1, 3]),\n", " pixel_area=torch.ones([1, 1]),\n", " nears=torch.ones([1, 1]) * near,\n", " fars=torch.ones([1, 1]) * far,\n", " )\n", "\n", " samples = sampler.generate_ray_samples(ray_bundle)\n", "\n", " trace = go.Histogram(x=samples.frustums.starts[0, :, 0], nbinsx=50)\n", " fig.append_trace(trace, i // 2 + 1, i % 2 + 1)\n", "\n", "fig.update_yaxes(title_text=\"# Samples\", row=1, col=1)\n", "fig.update_yaxes(title_text=\"# Samples\", row=2, col=1)\n", "fig.update_xaxes(title_text=\"Distance\", row=2, col=1)\n", "fig.update_xaxes(title_text=\"Distance\", row=2, col=2)\n", "\n", "# Overlay both histograms\n", "fig.update_layout(height=700, hovermode=False, showlegend=False, margin=dict(l=20, r=20, t=50, b=20))\n", "fig.update_yaxes(range=[0, 80])\n", "fig.update_traces(opacity=0.7)\n", "fig.show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## PDF Sampler\n", "\n", "The Probability Distribution Function (PDF) Sampler generates samples that match a given distribution. \n", "\n", "In the example below we first create a `UniformSampler` to generate a set of initial samples. We then assign weights to each of these samples to define the PDF (here it is an arbitrary function, but usually you would use the predicted weights from the field). The left plot the target PDF, on the right we plot a histogram of samples generated from the `PDFSampler`." ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "tags": [ "hide-input" ] }, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "opacity": 0.7, "type": "scatter", "x": [ 2, 2.1500000953674316, 2.1500000953674316, 2.299999952316284, 2.299999952316284, 2.450000047683716, 2.450000047683716, 2.5999999046325684, 2.5999999046325684, 2.75, 2.75, 2.9000000953674316, 2.9000000953674316, 3.049999952316284, 3.049999952316284, 3.200000047683716, 3.200000047683716, 3.3499999046325684, 3.3499999046325684, 3.5, 3.5, 3.6500000953674316, 3.6500000953674316, 3.799999952316284, 3.799999952316284, 3.950000047683716, 3.950000047683716, 4.100000381469727, 4.100000381469727, 4.25, 4.25, 4.400000095367432, 4.400000095367432, 4.550000190734863, 4.550000190734863, 4.699999809265137, 4.699999809265137, 4.849999904632568, 4.849999904632568, 5 ], "xaxis": "x", "y": [ 0.013052567839622498, 0.013052567839622498, 0.03800889104604721, 0.03800889104604721, 0.057813677936792374, 0.057813677936792374, 0.06855124980211258, 0.06855124980211258, 0.06847988814115524, 0.06847988814115524, 0.058445800095796585, 0.058445800095796585, 0.041673533618450165, 0.041673533618450165, 0.022983169183135033, 0.022983169183135033, 0.007623155601322651, 0.007623155601322651, 0, 0, 0.002611340256407857, 0.002611340256407857, 0.015439355745911598, 0.015439355745911598, 0.03595082834362984, 0.03595082834362984, 0.05970405042171478, 0.05970405042171478, 0.0814160406589508, 0.0814160406589508, 0.09623293578624725, 0.09623293578624725, 0.10089751332998276, 0.10089751332998276, 0.09453219175338745, 0.09453219175338745, 0.07884885370731354, 0.07884885370731354, 0.057734981179237366, 0.057734981179237366 ], "yaxis": "y" }, { "nbinsx": 100, "opacity": 0.7, "type": "histogram", "x": [ 2.0039002895355225, 2.0117006301879883, 2.019501209259033, 2.027301549911499, 2.035102128982544, 2.0429024696350098, 2.0507028102874756, 2.0585033893585205, 2.0663037300109863, 2.074104070663452, 2.081904649734497, 2.089704990386963, 2.097505569458008, 2.1053059101104736, 2.1131062507629395, 2.1209068298339844, 2.12870717048645, 2.136507749557495, 2.144308090209961, 2.151012420654297, 2.1547579765319824, 2.158503532409668, 2.1622490882873535, 2.165994644165039, 2.1697402000427246, 2.17348575592041, 2.1772313117980957, 2.1809771060943604, 2.184722423553467, 2.1884679794311523, 2.192213535308838, 2.1959590911865234, 2.199704647064209, 2.2034502029418945, 2.207195997238159, 2.2109413146972656, 2.214686870574951, 2.218432664871216, 2.2221782207489014, 2.225923538208008, 2.2296690940856934, 2.233414888381958, 2.2371604442596436, 2.24090576171875, 2.2446515560150146, 2.2483971118927, 2.2521424293518066, 2.2558882236480713, 2.259633779525757, 2.2633793354034424, 2.267124891281128, 2.2708704471588135, 2.274616003036499, 2.2783615589141846, 2.28210711479187, 2.2858526706695557, 2.289598226547241, 2.2933437824249268, 2.2970893383026123, 2.300590991973877, 2.3032426834106445, 2.305894374847412, 2.3085460662841797, 2.3111977577209473, 2.313849449157715, 2.3165011405944824, 2.31915283203125, 2.3218045234680176, 2.324456214904785, 2.3271079063415527, 2.3297595977783203, 2.332411289215088, 2.3350629806518555, 2.337714672088623, 2.3403663635253906, 2.343018054962158, 2.3456695079803467, 2.3483211994171143, 2.350973129272461, 2.3536248207092285, 2.356276273727417, 2.3589279651641846, 2.361579656600952, 2.3642313480377197, 2.3668830394744873, 2.369534730911255, 2.3721864223480225, 2.37483811378479, 2.3774898052215576, 2.380141496658325, 2.3827931880950928, 2.3854446411132812, 2.388096570968628, 2.3907480239868164, 2.393399715423584, 2.3960514068603516, 2.398703098297119, 2.4013547897338867, 2.4040064811706543, 2.406658172607422, 2.4093098640441895, 2.411961555480957, 2.4146132469177246, 2.417264938354492, 2.4199166297912598, 2.4225683212280273, 2.425220012664795, 2.4278717041015625, 2.43052339553833, 2.4331750869750977, 2.4358267784118652, 2.438478469848633, 2.4411301612854004, 2.443781852722168, 2.4464335441589355, 2.449085235595703, 2.4514994621276855, 2.4537887573242188, 2.456077814102173, 2.458367109298706, 2.46065616607666, 2.4629454612731934, 2.4652347564697266, 2.4675238132476807, 2.469813108444214, 2.472102165222168, 2.474391460418701, 2.4766807556152344, 2.4789698123931885, 2.4812591075897217, 2.483548402786255, 2.485837459564209, 2.488126754760742, 2.4904160499572754, 2.4927051067352295, 2.4949944019317627, 2.497283458709717, 2.49957275390625, 2.501862049102783, 2.5041511058807373, 2.5064404010772705, 2.5087296962738037, 2.511018753051758, 2.513308048248291, 2.515597343444824, 2.5178864002227783, 2.5201756954193115, 2.5224647521972656, 2.524754047393799, 2.527043342590332, 2.529332399368286, 2.5316216945648193, 2.5339109897613525, 2.5362000465393066, 2.53848934173584, 2.540778636932373, 2.543067693710327, 2.5453569889068604, 2.5476460456848145, 2.5499353408813477, 2.552224636077881, 2.554513692855835, 2.556802988052368, 2.5590920448303223, 2.5613813400268555, 2.5636706352233887, 2.565959930419922, 2.568248987197876, 2.570538282394409, 2.5728273391723633, 2.5751166343688965, 2.5774059295654297, 2.579694986343384, 2.581984281539917, 2.58427357673645, 2.5865626335144043, 2.5888519287109375, 2.5911412239074707, 2.593430280685425, 2.595719575881958, 2.598008632659912, 2.6002981662750244, 2.6025896072387695, 2.6048808097839355, 2.6071720123291016, 2.6094634532928467, 2.611754894256592, 2.6140458583831787, 2.616337299346924, 2.61862850189209, 2.620919704437256, 2.623211145401001, 2.625502586364746, 2.627793788909912, 2.630084991455078, 2.632376194000244, 2.6346676349639893, 2.6369590759277344, 2.6392502784729004, 2.6415414810180664, 2.6438326835632324, 2.6461238861083984, 2.6484153270721436, 2.6507067680358887, 2.6529979705810547, 2.6552891731262207, 2.6575803756713867, 2.659871816635132, 2.662163257598877, 2.664454460144043, 2.666745662689209, 2.669036865234375, 2.671328067779541, 2.673619508743286, 2.6759109497070312, 2.6782021522521973, 2.6804933547973633, 2.6827845573425293, 2.6850759983062744, 2.6873672008514404, 2.6896584033966064, 2.6919498443603516, 2.6942410469055176, 2.6965322494506836, 2.6988236904144287, 2.701115131378174, 2.70340633392334, 2.705697536468506, 2.707988739013672, 2.710280179977417, 2.712571620941162, 2.714862823486328, 2.717154026031494, 2.71944522857666, 2.721736431121826, 2.724027633666992, 2.7263193130493164, 2.7286105155944824, 2.7309017181396484, 2.7331929206848145, 2.7354843616485596, 2.7377758026123047, 2.7400670051574707, 2.7423582077026367, 2.7446494102478027, 2.7469406127929688, 2.749232053756714, 2.751746654510498, 2.754373788833618, 2.7570009231567383, 2.7596282958984375, 2.7622551918029785, 2.7648825645446777, 2.767509698867798, 2.770136833190918, 2.772764205932617, 2.7753913402557373, 2.7780184745788574, 2.7806458473205566, 2.7832727432250977, 2.785900115966797, 2.788527488708496, 2.791154384613037, 2.7937817573547363, 2.7964086532592773, 2.7990360260009766, 2.8016631603240967, 2.804290294647217, 2.806917667388916, 2.8095450401306152, 2.8121719360351562, 2.8147993087768555, 2.8174264430999756, 2.8200535774230957, 2.822680950164795, 2.825307846069336, 2.827935218811035, 2.8305623531341553, 2.8331894874572754, 2.8358168601989746, 2.8384439945220947, 2.841071128845215, 2.843698501586914, 2.846325397491455, 2.8489527702331543, 2.8515799045562744, 2.8542070388793945, 2.8568344116210938, 2.8594613075256348, 2.862088680267334, 2.864715814590454, 2.867342948913574, 2.8699703216552734, 2.8725974559783936, 2.8752245903015137, 2.877851963043213, 2.880478858947754, 2.883106231689453, 2.8857333660125732, 2.8883605003356934, 2.8909878730773926, 2.8936147689819336, 2.896242141723633, 2.898869037628174, 2.901982307434082, 2.9054622650146484, 2.908942222595215, 2.9124221801757812, 2.9159021377563477, 2.919382095336914, 2.9228615760803223, 2.9263415336608887, 2.929821491241455, 2.9333014488220215, 2.936781406402588, 2.9402613639831543, 2.9437413215637207, 2.947221279144287, 2.9507012367248535, 2.95418119430542, 2.9576611518859863, 2.9611411094665527, 2.964621067047119, 2.9681007862091064, 2.971580743789673, 2.9750607013702393, 2.9785404205322266, 2.982020378112793, 2.9855003356933594, 2.988980293273926, 2.992460250854492, 2.9959402084350586, 2.999420166015625, 3.0029001235961914, 3.006380081176758, 3.009860038757324, 3.0133399963378906, 3.016819953918457, 3.0202996730804443, 3.02377986907959, 3.027259588241577, 3.0307395458221436, 3.034219264984131, 3.0376992225646973, 3.0411791801452637, 3.04465913772583, 3.0481390953063965, 3.0525364875793457, 3.057988405227661, 3.0634403228759766, 3.068892002105713, 3.0743441581726074, 3.0797958374023438, 3.08524751663208, 3.0906996726989746, 3.096151351928711, 3.1016035079956055, 3.107055187225342, 3.1125071048736572, 3.1179590225219727, 3.123410940170288, 3.1288628578186035, 3.134314775466919, 3.1397666931152344, 3.14521861076355, 3.1506705284118652, 3.1561222076416016, 3.161573886871338, 3.1670260429382324, 3.1724777221679688, 3.1779298782348633, 3.1833815574645996, 3.188833713531494, 3.1942853927612305, 3.199737071990967, 3.209711790084839, 3.2199153900146484, 3.230119228363037, 3.2403225898742676, 3.2505264282226562, 3.260730028152466, 3.2709336280822754, 3.281137228012085, 3.2913408279418945, 3.3015449047088623, 3.311748504638672, 3.3219521045684814, 3.332155704498291, 3.3423593044281006, 3.3545167446136475, 3.3724982738494873, 3.3904805183410645, 3.4084625244140625, 3.4264445304870605, 3.4444267749786377, 3.462409019470215, 3.480390787124634, 3.498373031616211, 3.512968063354492, 3.5272269248962402, 3.54148530960083, 3.555744171142578, 3.570002555847168, 3.584261417388916, 3.598519802093506, 3.612778663635254, 3.6270365715026855, 3.6412954330444336, 3.6527533531188965, 3.6598219871520996, 3.6668906211853027, 3.6739590167999268, 3.681027889251709, 3.688096523284912, 3.695164680480957, 3.70223331451416, 3.7093024253845215, 3.7163705825805664, 3.7234394550323486, 3.7305080890655518, 3.737576484680176, 3.744645118713379, 3.751713514328003, 3.758782386779785, 3.76585054397583, 3.7729194164276123, 3.7799880504608154, 3.7870564460754395, 3.7941250801086426, 3.8006608486175537, 3.8045742511749268, 3.8084874153137207, 3.8124008178710938, 3.816314220428467, 3.8202273845672607, 3.824141025543213, 3.828054189682007, 3.831967353820801, 3.835880756378174, 3.8397939205169678, 3.843707323074341, 3.8476204872131348, 3.851533889770508, 3.855447292327881, 3.859360456466675, 3.863274097442627, 3.867187023162842, 3.871100425720215, 3.875014066696167, 3.878927230834961, 3.882840633392334, 3.886753797531128, 3.890666961669922, 3.894580602645874, 3.898493528366089, 3.902407169342041, 3.906320333480835, 3.910233497619629, 3.914147138595581, 3.918060302734375, 3.921973705291748, 3.925887107849121, 3.929800033569336, 3.933713674545288, 3.937626838684082, 3.941540241241455, 3.945453643798828, 3.949366807937622, 3.952162265777588, 3.954742193222046, 3.9573216438293457, 3.9599015712738037, 3.9624814987182617, 3.9650611877441406, 3.9676411151885986, 3.9702205657958984, 3.9728004932403564, 3.9753804206848145, 3.9779598712921143, 3.9805397987365723, 3.983119487762451, 3.985699415206909, 3.988279342651367, 3.990858793258667, 3.993438720703125, 3.996018409729004, 3.998598098754883, 4.001177787780762, 4.003757476806641, 4.0063371658325195, 4.008917331695557, 4.0114970207214355, 4.014077186584473, 4.016656398773193, 4.0192365646362305, 4.021816253662109, 4.024395942687988, 4.026975631713867, 4.029555320739746, 4.032135009765625, 4.034715175628662, 4.037294387817383, 4.039874076843262, 4.042454242706299, 4.045034408569336, 4.047614097595215, 4.050193786621094, 4.052773475646973, 4.055353164672852, 4.0579328536987305, 4.060512542724609, 4.063092231750488, 4.065672397613525, 4.068252086639404, 4.070831775665283, 4.07341194152832, 4.075991153717041, 4.078571319580078, 4.081151008605957, 4.083730697631836, 4.086310386657715, 4.088890075683594, 4.091469764709473, 4.09404993057251, 4.096629619598389, 4.099209308624268, 4.1013641357421875, 4.103331089019775, 4.105298042297363, 4.107264995574951, 4.109231948852539, 4.111199378967285, 4.113166332244873, 4.115133285522461, 4.117100715637207, 4.119067668914795, 4.121034622192383, 4.123002052307129, 4.124969005584717, 4.126935958862305, 4.128902912139893, 4.1308698654174805, 4.132836818695068, 4.134803771972656, 4.136771202087402, 4.138737678527832, 4.140705108642578, 4.142672061920166, 4.144639015197754, 4.1466064453125, 4.148573398590088, 4.150540351867676, 4.152507781982422, 4.15447473526001, 4.156441688537598, 4.1584086418151855, 4.160375595092773, 4.162342548370361, 4.164309501647949, 4.166276931762695, 4.168243885040283, 4.170210838317871, 4.172178268432617, 4.174145221710205, 4.176112174987793, 4.178079605102539, 4.180046558380127, 4.182013511657715, 4.183980464935303, 4.185947418212891, 4.1879143714904785, 4.189881324768066, 4.191848278045654, 4.193815231323242, 4.195782661437988, 4.197749614715576, 4.199716567993164, 4.20168399810791, 4.203650951385498, 4.205617904663086, 4.207585334777832, 4.209551811218262, 4.211519241333008, 4.213486194610596, 4.215453147888184, 4.2174201011657715, 4.219387054443359, 4.2213544845581055, 4.223321437835693, 4.225288391113281, 4.227255821228027, 4.229222297668457, 4.231189727783203, 4.233156681060791, 4.235123634338379, 4.237091064453125, 4.239058017730713, 4.241024971008301, 4.242991924285889, 4.244958877563477, 4.2469258308410645, 4.248892784118652, 4.250740051269531, 4.252432823181152, 4.254125595092773, 4.2558183670043945, 4.257511138916016, 4.259203910827637, 4.2608962059021, 4.262588977813721, 4.2642822265625, 4.265974521636963, 4.267666816711426, 4.269359588623047, 4.271052837371826, 4.272745132446289, 4.27443790435791, 4.276130676269531, 4.277823448181152, 4.279515743255615, 4.2812089920043945, 4.282901763916016, 4.2845940589904785, 4.286286354064941, 4.287979602813721, 4.289672374725342, 4.291364669799805, 4.293057441711426, 4.294750213623047, 4.296442985534668, 4.298135757446289, 4.29982852935791, 4.301521301269531, 4.303213596343994, 4.304906368255615, 4.306599140167236, 4.308291912078857, 4.30998420715332, 4.3116774559021, 4.313370227813721, 4.315062522888184, 4.316755294799805, 4.318448066711426, 4.320140838623047, 4.321833610534668, 4.323526382446289, 4.32521915435791, 4.326911449432373, 4.328604221343994, 4.330296993255615, 4.331989765167236, 4.333682060241699, 4.33537483215332, 4.337067604064941, 4.3387603759765625, 4.340453147888184, 4.342145919799805, 4.343838691711426, 4.345530986785889, 4.34722375869751, 4.348916530609131, 4.350609302520752, 4.352301597595215, 4.353994369506836, 4.355687141418457, 4.357379913330078, 4.359072685241699, 4.36076545715332, 4.362458229064941, 4.3641510009765625, 4.365843772888184, 4.367536544799805, 4.369228839874268, 4.370921611785889, 4.37261438369751, 4.374307155609131, 4.375999450683594, 4.377692222595215, 4.379384994506836, 4.381077766418457, 4.382770538330078, 4.384463310241699, 4.38615608215332, 4.387848377227783, 4.389541149139404, 4.391233921051025, 4.3929266929626465, 4.394618988037109, 4.3963117599487305, 4.398004531860352, 4.399697303771973, 4.401331424713135, 4.402953147888184, 4.404574871063232, 4.406196117401123, 4.407817363739014, 4.409439563751221, 4.411060810089111, 4.41268253326416, 4.414303779602051, 4.4159255027771, 4.41754674911499, 4.419168472290039, 4.42078971862793, 4.4224114418029785, 4.424032688140869, 4.425654411315918, 4.427275657653809, 4.428897380828857, 4.430518627166748, 4.432140350341797, 4.4337615966796875, 4.435382843017578, 4.437005043029785, 4.438626289367676, 4.440247535705566, 4.441868782043457, 4.443490982055664, 4.445112228393555, 4.446733474731445, 4.448355197906494, 4.449976444244385, 4.451598167419434, 4.453219413757324, 4.454841136932373, 4.456462383270264, 4.4580841064453125, 4.459705352783203, 4.461327075958252, 4.462948322296143, 4.464570045471191, 4.466191291809082, 4.467813014984131, 4.4694342613220215, 4.4710564613342285, 4.472677707672119, 4.47429895401001, 4.475920677185059, 4.477542400360107, 4.479163646697998, 4.480784893035889, 4.4824066162109375, 4.484028339385986, 4.485649585723877, 4.487271308898926, 4.488893032073975, 4.490514278411865, 4.492136001586914, 4.493757247924805, 4.4953789710998535, 4.497000217437744, 4.498621940612793, 4.500243186950684, 4.501864910125732, 4.503486156463623, 4.505107879638672, 4.5067291259765625, 4.508350849151611, 4.50997257232666, 4.511593818664551, 4.513215065002441, 4.514836311340332, 4.516458511352539, 4.51807975769043, 4.51970100402832, 4.521322250366211, 4.52294397354126, 4.524565696716309, 4.526186943054199, 4.52780818939209, 4.529430389404297, 4.5310516357421875, 4.532672882080078, 4.534294605255127, 4.535915851593018, 4.537537574768066, 4.539158821105957, 4.540780544281006, 4.5424017906188965, 4.544023513793945, 4.545645236968994, 4.547266483306885, 4.548888206481934, 4.550540924072266, 4.5522613525390625, 4.553980827331543, 4.55570125579834, 4.557421684265137, 4.559141635894775, 4.560862064361572, 4.562582015991211, 4.564302444458008, 4.5660223960876465, 4.567742824554443, 4.56946325302124, 4.571183681488037, 4.572904109954834, 4.574624061584473, 4.5763444900512695, 4.578064441680908, 4.579784393310547, 4.581504821777344, 4.583225250244141, 4.5849456787109375, 4.586665630340576, 4.588385581970215, 4.590106010437012, 4.59182596206665, 4.593546390533447, 4.595266819000244, 4.596987247467041, 4.59870719909668, 4.600427627563477, 4.602148056030273, 4.60386848449707, 4.605587959289551, 4.607308387756348, 4.6090288162231445, 4.610749244689941, 4.612468719482422, 4.614189147949219, 4.615909576416016, 4.617629528045654, 4.619349956512451, 4.621070384979248, 4.622790813446045, 4.624510765075684, 4.626230716705322, 4.627951622009277, 4.629671573638916, 4.631391525268555, 4.633111953735352, 4.634832382202148, 4.636552810668945, 4.638272762298584, 4.639992713928223, 4.6417131423950195, 4.643433094024658, 4.645153522491455, 4.646873950958252, 4.648594379425049, 4.6503143310546875, 4.652034282684326, 4.653754711151123, 4.65547513961792, 4.657195568084717, 4.6589155197143555, 4.660635948181152, 4.662356376647949, 4.66407585144043, 4.665796279907227, 4.667516708374023, 4.669236660003662, 4.670957088470459, 4.672677516937256, 4.674397945404053, 4.676117897033691, 4.67783784866333, 4.679558277130127, 4.681278705596924, 4.682999134063721, 4.684719085693359, 4.686439514160156, 4.688159465789795, 4.689879417419434, 4.6915998458862305, 4.693320274353027, 4.695040702819824, 4.696760654449463, 4.698480606079102, 4.7002363204956055, 4.702260494232178, 4.704284191131592, 4.706308364868164, 4.708332538604736, 4.710355758666992, 4.712380409240723, 4.7144036293029785, 4.716427803039551, 4.718451976776123, 4.720475196838379, 4.722499370574951, 4.724523067474365, 4.7265472412109375, 4.72857141494751, 4.730594635009766, 4.732619285583496, 4.734642505645752, 4.736666679382324, 4.7386908531188965, 4.740714073181152, 4.742738246917725, 4.744761943817139, 4.746786117553711, 4.748810291290283, 4.750833511352539, 4.7528581619262695, 4.754881381988525, 4.756905555725098, 4.75892972946167, 4.760953426361084, 4.762977600097656, 4.76500129699707, 4.767024993896484, 4.769049167633057, 4.7710723876953125, 4.773097038269043, 4.775120258331299, 4.777144432067871, 4.779168605804443, 4.781191825866699, 4.78321647644043, 4.7852396965026855, 4.787263870239258, 4.78928804397583, 4.791311264038086, 4.793335914611816, 4.795359134674072, 4.7973833084106445, 4.799407482147217, 4.801431179046631, 4.803455352783203, 4.805479049682617, 4.807502746582031, 4.8095269203186035, 4.811550617218018, 4.81357479095459, 4.815598487854004, 4.817622184753418, 4.81964635848999, 4.821669578552246, 4.823694229125977, 4.825717449188232, 4.827741622924805, 4.829765796661377, 4.831789016723633, 4.833813667297363, 4.835836887359619, 4.837861061096191, 4.839885234832764, 4.841908931732178, 4.84393310546875, 4.845956802368164, 4.847980499267578, 4.850006103515625, 4.852660655975342, 4.855315208435059, 4.857970237731934, 4.86062479019165, 4.863279819488525, 4.8659348487854, 4.868589401245117, 4.871243953704834, 4.873898506164551, 4.876553535461426, 4.879208087921143, 4.881862640380859, 4.884518146514893, 4.887172698974609, 4.889827728271484, 4.892482280731201, 4.895136833190918, 4.897791862487793, 4.90044641494751, 4.903100967407227, 4.905755996704102, 4.908410549163818, 4.911065101623535, 4.91372013092041, 4.916375160217285, 4.919029712677002, 4.921684265136719, 4.924339294433594, 4.9269938468933105, 4.929648399353027, 4.932303428649902, 4.934958457946777, 4.937613010406494, 4.940267562866211, 4.942922592163086, 4.945577144622803, 4.948232173919678, 4.950887203216553, 4.9535417556762695, 4.9561967849731445, 4.958850860595703, 4.961505889892578, 4.964160442352295, 4.96681547164917, 4.969470500946045, 4.972125053405762, 4.974780082702637, 4.9774346351623535, 4.9800896644592285, 4.982744216918945, 4.98539924621582, 4.988053321838379, 4.990708351135254, 4.993362903594971, 4.996017932891846 ], "xaxis": "x2", "yaxis": "y2" } ], "layout": { "annotations": [ { "font": { "size": 16 }, "showarrow": false, "text": "PDF", "x": 0.225, "xanchor": "center", "xref": "paper", "y": 1, "yanchor": "bottom", "yref": "paper" }, { "font": { "size": 16 }, "showarrow": false, "text": "Samples", "x": 0.775, "xanchor": "center", "xref": "paper", "y": 1, "yanchor": "bottom", "yref": "paper" } ], "height": 400, "hovermode": false, "margin": { "b": 20, "l": 20, "r": 20, "t": 50 }, "showlegend": false, "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "sequentialminus": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0, 0.45 ], "title": { "text": "Distance" } }, "xaxis2": { "anchor": "y2", "domain": [ 0.55, 1 ], "title": { "text": "Distance" } }, "yaxis": { "anchor": "x", "domain": [ 0, 1 ] }, "yaxis2": { "anchor": "x2", "domain": [ 0, 1 ], "title": { "text": "# Samples" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# COLLAPSED\n", "import torch\n", "from nerfstudio.cameras.rays import RayBundle\n", "from nerfstudio.model_components import ray_sampler\n", "import plotly.graph_objects as go\n", "from plotly.subplots import make_subplots\n", "\n", "num_coarse_samples = 20\n", "num_samples = 1000\n", "near = 2\n", "far = 5\n", "train_stratified = False\n", "\n", "fig = make_subplots(\n", " rows=1,\n", " cols=2,\n", " subplot_titles=(\"PDF\", \"Samples\"),\n", ")\n", "\n", "uniform_sampler = ray_sampler.UniformSampler(num_samples=num_coarse_samples, train_stratified=train_stratified)\n", "pdf_sampler = ray_sampler.PDFSampler(num_samples=num_samples, train_stratified=train_stratified, include_original=False)\n", "\n", "ray_bundle = RayBundle(\n", " origins=torch.ones([1, 3]),\n", " directions=torch.ones([1, 3]),\n", " pixel_area=torch.ones([1, 1]),\n", " nears=torch.ones([1, 1]) * near,\n", " fars=torch.ones([1, 1]) * far,\n", ")\n", "\n", "coarse_ray_samples = uniform_sampler(ray_bundle)\n", "\n", "# Generate arbitrary PDF\n", "weights = torch.ones(num_coarse_samples)\n", "weights += torch.sin(torch.linspace(0, 3 * torch.pi, num_coarse_samples))\n", "weights += torch.sin(torch.linspace(0, 0.5 * torch.pi, num_coarse_samples))\n", "weights -= torch.min(weights)\n", "weights /= torch.sum(weights)\n", "\n", "samples = pdf_sampler.generate_ray_samples(ray_bundle, coarse_ray_samples, weights[None, :, None], num_samples)\n", "\n", "# Plotting stuff\n", "x = torch.ones((num_coarse_samples * 2))\n", "x[::2] = coarse_ray_samples.frustums.starts[0, :, 0]\n", "x[1::2] = coarse_ray_samples.frustums.ends[0, :, 0]\n", "\n", "y = torch.ones((num_coarse_samples * 2))\n", "y[::2] = weights\n", "y[1::2] = weights\n", "\n", "pdf_trace = go.Scatter(x=x, y=y)\n", "fig.append_trace(pdf_trace, 1, 1)\n", "\n", "samples_trace = go.Histogram(x=samples.frustums.starts[0, :, 0], nbinsx=100)\n", "fig.append_trace(samples_trace, 1, 2)\n", "\n", "fig.update_yaxes(title_text=\"# Samples\", row=1, col=2)\n", "fig.update_xaxes(title_text=\"Distance\", row=1, col=1)\n", "fig.update_xaxes(title_text=\"Distance\", row=1, col=2)\n", "\n", "# Overlay both histograms\n", "fig.update_layout(height=400, hovermode=False, showlegend=False, margin=dict(l=20, r=20, t=50, b=20))\n", "fig.update_traces(opacity=0.7)\n", "fig.show()" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.7" }, "vscode": { "interpreter": { "hash": "916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1" } } }, "nbformat": 4, "nbformat_minor": 2 }