{%if trips_per_user_hist %}
<div>
  <div class="tab-structure-info-button">
    <input type="checkbox" id="tripsperuser">
    <label class="tab-label-structure-info-button" for="tripsperuser"><h3>Number of trips per user <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-info-circle" viewBox="0 0 16 16">
        <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>
        <path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/>
      </svg></h3></label>
    <div class="tab-content">
      <p>The following histogram shows the distribution of number of trips per user for both datasets, i.e. how many trips a user contributed to each dataset.</p>
      <p>The y-axis indicates the relative number of users and the x-axis shows the range of the histogram bins according to the user configured maximum of trips per user.</p>
      <p>The allocated privacy budgets for both datasets are shown below and noise is applied accordingly to compute the estimate (bars) and the 95% confidence interval (error bar).</p>
      <p> The legend indicates the color for the base dataset and the alternative dataset.</p>
      <p>All applicable similarity measures are displayed in the orange box below.</p>
    </div>
  </div> 
    <table class="default">               
        <tr>
          <th style="width:30%">Base:</th>
          <td style="width:30%">privacy budget: {{trips_per_user_eps[0]}}</td>
          <td style="width:30%">95% CI: +/- {{trips_per_user_moe[0]}} %</td>
        </tr>
        <tr>
          <th style="width:30%">Alternative:</th>
          <td style="width:30%">privacy budget: {{trips_per_user_eps[1]}}</td>
          <td style="width:30%">95% CI: +/- {{trips_per_user_moe[1]}} %</td>
        </tr>
      </table>
    {{trips_per_user_hist}}
    <p class="grey info">
        {{trips_per_user_info}}
    </p>
    {{trips_per_user_measure}}
    <h4>Five number summary: trips per user</h4>
    <div>
        {{trips_per_user_summary_table}}
        {{trips_per_user_summary_measure}}
        </p>
    </div>
</div>
{% endif %}

{%if time_between_traj_hist %}
<div>
  <div class="tab-structure-info-button">
    <input type="checkbox" id="userdelta">
    <label class="tab-label-structure-info-button" for="userdelta"><h3>Time between consecutive trips of a user <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-info-circle" viewBox="0 0 16 16">
        <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>
        <path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/>
      </svg></h3></label>
    <div class="tab-content">
      <p>The following histogram shows the distribution of time between consecutive trips of a user for both datasets, i.e. the time that passes between the end of one trip and the beginning of the following trip of one user.</p>
      <p>The y-axis indicates the relative number of trips and the x-axis shows the range of the histogram bins in hours between trips of the same user according to the user configured bin size and maximum value.</p>
      <p>The allocated privacy budgets for both datasets are shown below and noise is applied accordingly to compute the estimate (bars) and the 95% confidence interval (error bar).</p>
      <p> The legend indicates the color for the base dataset and the alternative dataset.</p>
      <p>All applicable similarity measures are displayed in the orange box below.</p>
    </div>
</div>    <table class="default">               
        <tr>
          <th style="width:30%">Base:</th>
          <td style="width:30%">privacy budget: {{time_between_traj_eps[0]}}</td>
          <td style="width:30%">95% CI: +/- {{time_between_traj_moe[0]}} %</td>
        </tr>
        <tr>
          <th style="width:30%">Alternative:</th>
          <td style="width:30%">privacy budget: {{time_between_traj_eps[1]}}</td>
          <td style="width:30%">95% CI: +/- {{time_between_traj_moe[1]}} %</td>
        </tr>
      </table>
    <div>
        {{time_between_traj_hist}}
        <p class="grey info">
          {{time_between_traj_hist_info}}
      </p>
        {{time_between_traj_measure}}
    </div>
    <h4>Five number summary: time between consecutive trips of a user</h4>
    <div>
        {{time_between_traj_summary_table}}
    </div>
    {%if plausi_check_info %}
    <p class="warning-text">
        {{plausi_check_info}}
    </p>
    {% endif %}
    {{time_between_traj_summary_measure}}
    </p>
</div>
{% endif %}

{%if radius_of_gyration_hist %}
<div>
  <div class="tab-structure-info-button">
    <input type="checkbox" id="radiusgyration">
    <label class="tab-label-structure-info-button" for="radiusgyration"><h3>Radius of gyration (in kilometers) <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-info-circle" viewBox="0 0 16 16">
        <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>
        <path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/>
      </svg></h3></label>
    <div class="tab-content">
      <p>The following histogram shows the distribution of the radii of gyration for both datasets. The radius of gyration is the characteristic distance traveled by an individual during a period of time.</p>
      <p>The y-axis indicates the relative number of users and the x-axis shows the range of the histogram bins in kilometers according to the user configured bin size and maximum value.</p>
      <p>The allocated privacy budgets for both datasets are shown below and noise is applied accordingly to compute the estimate (bars) and the 95% confidence interval (error bar).</p>
      <p> The legend indicates the color for the base dataset and the alternative dataset.</p>
      <p>All applicable similarity measures are displayed in the orange box below.</p>
    </div>
  </div>
    <table class="default">               
        <tr>
          <th style="width:30%">Base:</th>
          <td style="width:30%">privacy budget: {{radius_of_gyration_eps[0]}}</td>
          <td style="width:30%">95% CI: +/- {{radius_of_gyration_moe[0]}} %</td>
        </tr>
        <tr>
          <th style="width:30%">Alternative:</th>
          <td style="width:30%">privacy budget: {{radius_of_gyration_eps[1]}}</td>
          <td style="width:30%">95% CI: +/- {{radius_of_gyration_moe[1]}} %</td>
        </tr>
      </table>

    <div>
        {{radius_of_gyration_hist}}
        <p class="grey info">
            {{radius_of_gyration_hist_info}}
        {{radius_of_gyration_measure}}
        </p>
    </div>
    <h4>Five number summary: radius of gyration</h4>
    <div>
        {{radius_of_gyration_summary_table}}
        {{radius_of_gyration_summary_measure}}
    </div>
</div>
{% endif %}

{%if distinct_tiles_user_hist %}
<div>
  <div class="tab-structure-info-button">
    <input type="checkbox" id="distincttiles">
    <label class="tab-label-structure-info-button" for="distincttiles"><h3>Number of distinct tiles per user <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-info-circle" viewBox="0 0 16 16">
        <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>
        <path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/>
      </svg></h3></label>
    <div class="tab-content">
      <p>The following histogram shows the distribution of how many distinct tiles a user has visited for both datasets. It describes the diversity of locations a user visits.</p>
      <p>The y-axis indicates the relative number of users and the x-axis shows the number of distinct tiles according to the user configured bin size and maximum value.</p>
      <p>The allocated privacy budgets for both datasets are shown below and noise is applied accordingly to compute the estimate (bars) and the 95% confidence interval (error bar).</p>
      <p> The legend indicates the color for the base dataset and the alternative dataset.</p>
      <p>All applicable similarity measures are displayed in the orange box below.</p>
    </div>
  </div>
    <table class="default">               
        <tr>
          <th style="width:30%">Base:</th>
          <td style="width:30%">privacy budget: {{distinct_tiles_user_eps[0]}}</td>
          <td style="width:30%">95% CI: +/- {{distinct_tiles_user_moe[0]}} %</td>
        </tr>
        <tr>
          <th style="width:30%">Alternative:</th>
          <td style="width:30%">privacy budget: {{distinct_tiles_user_eps[1]}}</td>
          <td style="width:30%">95% CI: +/- {{distinct_tiles_user_moe[1]}} %</td>
        </tr>
      </table>
    <div>
        {{distinct_tiles_user_hist}}
        <p class="grey info">
          {{distinct_tiles_user_hist_info}}
          {{distinct_tiles_measure}}
        </p>
    </div>
    <h4>Five number summary: distinct tiles per user</h4>
    <div>
        {{distinct_tiles_user_summary_table}}
        {{distinct_tiles_summary_measure}}
    </div>
</div>
{% endif %}

{%if mobility_entropy_hist %}
<div>
  <div class="tab-structure-info-button">
    <input type="checkbox" id="mobilityentropy">
    <label class="tab-label-structure-info-button" for="mobilityentropy"><h3>Mobility entropy <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-info-circle" viewBox="0 0 16 16">
        <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>
        <path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/>
      </svg></h3></label>
    <div class="tab-content">
      <p>The following histogram shows the distribution of the mobility entropy for both datasets.</p>
      <p>The mobility entropy characterizes the heterogeneity of the users visitation patterns and can be interpreted as a measure for the predictability of a users location.
        If a user only visits a single tile, the entropy is 0, i.e., their location is highly predictable. If a user visits, e.g., four different tiles each 10 times, the entropy is 1, i.e., their location is not predictable as every of the four tiles has the same probability to be visited by the user.
        Intuitively, the more trips per user are entailed in the data, the more meaningful the mobility entropy.</p>
      <p>The y-axis indicates the relative number of users and the x-axis shows the range of histogram bins for the mobility entropy.</p>
      <p>The allocated privacy budgets for both datasets are shown below and noise is applied accordingly to compute the estimate (bars) and the 95% confidence interval (error bar).</p>
      <p>The legend indicates the color for the base dataset and the alternative dataset.</p>
      <p>All applicable similarity measures are displayed in the orange box below.</p>
    </div>
  </div>
    <table class="default">               
        <tr>
          <th style="width:30%">Base:</th>
          <td style="width:30%">privacy budget: {{mobility_entropy_eps[0]}}</td>
          <td style="width:30%">95% CI: +/- {{mobility_entropy_moe[0]}} %</td>
        </tr>
        <tr>
          <th style="width:30%">Alternative:</th>
          <td style="width:30%">privacy budget: {{mobility_entropy_eps[1]}}</td>
          <td style="width:30%">95% CI: +/- {{mobility_entropy_moe[1]}} %</td>
        </tr>
      </table>
    <div>
        {{mobility_entropy_hist}}
        {{mobility_entropy_measure}}
    </div>
    <h4>Five number summary: mobility entropy</h4>
    <div>
        {{mobility_entropy_summary_table}}
        {{mobility_entropy_summary_measure}}
    </div>
</div>
{% endif %}
