Skip to content

Commit

Permalink
Changing Common directions
Browse files Browse the repository at this point in the history
  • Loading branch information
dpastorgalan committed Jun 20, 2024
1 parent ef33ff6 commit 994fdbf
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 35 deletions.
51 changes: 24 additions & 27 deletions statistics/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,11 @@ <h5> Statistics - Mean Geomagnetic Directions </h5>
<br>
<div class="alert alert-light alert-dismissible fade show" role="alert">
<h5> Statistics - Common Directions </h5>
<p> CHANGES ARE NEEDED - CHECK REFERENCES TOO
Figures showing <b>1000</b> bootstrapped mean coordinates for the selected collections following the
approach of <a href='../references'>Tauxe et al., 2010</a>. Select two collections and click <b>initialize</b>
to begin the bootstrap. Overlapping distributions indicidate that two collections are the same
within confidence limits.
<p> Select two collections and click <b>initialize</b> to begin the bootstrap. (A) <a href='../references'>Tauxe et al., 2010</a>
Common True Mean Direction (CMTD). Overlapping distributions indicidate that two collections are the same within confidence limits.
(B) Common Mean Direction Test (CMDT) from <a href='../references'>Heslop et al., 2023</a>, showing the histogram of
&lambda;<sup>(b)</sup><sub>min</sub>. If CMTD value is less than the critical value directions are not different.

<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
Expand All @@ -243,29 +243,11 @@ <h5> Statistics - Common Directions </h5>
<div class="alert alert-light" id="grid-overview-note"></div>
<div class="container">
<div class="row justify-content-md-center">

<div id="permutation-table"></div>
<div class="table-responsive">
<table class='table table-sm text-center table-striped' id="bootstrap-table"></table>
<br/>
<table class='table table-sm text-center table-striped' id="bootstrap-table-new"></table>
<br/>
<div id="bootstrap-direction-form"></div>
<table class='table table-sm text-center table-striped'
id="bootstrap-cmdt-direction-table"></table>
<br/>
</div>

<div class="col-lg-12 d-flex justify-content-center align-items-center">
<div class="col-lg-6">
<div id="container-histogram-1"></div>
</div>
<div class="col-lg-6">
<div id="container-dot-chart"></div>
</div>
</div>

<!-- X, Y, Z coordinates -->

<!-- X, Y, Z coordinates -->
<div class="col-lg-12 d-flex" style="margin-top: 50px; margin-bottom: 50px">
<div class="col-lg-4">
<div id="ctmd-container-x"></div>
Expand All @@ -278,8 +260,24 @@ <h5> Statistics - Common Directions </h5>
</div>
</div>
</div>
<br>
<br/><br/><br/><br/>


<table class='table table-sm text-center table-striped' id="bootstrap-table-new"></table>
<div id="bootstrap-direction-form"></div>
<table class='table table-sm text-center table-striped'
id="bootstrap-cmdt-direction-table"></table>
</div>

<!-- Heslop et al., 2023 -->
<div class="col-lg-12 d-flex justify-content-center align-items-center">
<div class="col-lg-6">
<div id="container-histogram-1"></div>
</div>
<div class="col-lg-6">
<div id="container-dot-chart"></div>
</div>
</div>
<div class="text-right">
<button class="btn btn-sm btn-light" id="export-bootstrap-png"><i class="far fa-file-image"></i> PNG
</button>
Expand All @@ -288,7 +286,6 @@ <h5> Statistics - Common Directions </h5>
<button class="btn btn-sm btn-light" id="export-bootstrap-pdf"><i class="far fa-file-image"></i> PDF
</button>
</div>

</div>
</div>

Expand Down
30 changes: 22 additions & 8 deletions statistics/js/graphs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2768,27 +2768,27 @@ function plotHistograms(Lmin_b, B, Lmin, Lmin_c) {
{
color: HIGHCHARTS_RED,
width: 1,
value: Lmin, // Valor para la línea de prueba
zIndex: 5, // Ajusta la capa para asegurarte de que esté sobre las barras del histograma
value: Lmin, // Test line
zIndex: 5, // Fixes layer
label: {
text: 'Test statistic', // Etiqueta para la línea
text: 'Test statistic', // line tag
align: 'left',
style: {
color: 'gray' // Color de la etiqueta
color: 'gray' // tag color
}
}
},
{
color: HIGHCHARTS_RED,
width: 1,
dashStyle: 'Dash',
value: Lmin_c, // Valor para la línea crítica
zIndex: 5, // Ajusta la capa para asegurarte de que esté sobre las barras del histograma
value: Lmin_c, // Critical lambda
zIndex: 5, // Fixes layer
label: {
text: 'Critical value', // Etiqueta para la línea
text: 'Critical value', // line tag
align: 'left',
style: {
color: 'gray' // Color de la etiqueta
color: 'gray' // tag color
}
}
}
Expand Down Expand Up @@ -2868,9 +2868,18 @@ function updateCTMDTable(names, xParams, yParams, zParams, CMDTValue, CMDTCritic
var matchBootstrap = doesMatchBootstrap(xParams, yParams, zParams);

document.getElementById("bootstrap-table").innerHTML = [

" <caption>1000 bootstrapped Cartesian coordinates for the collections at 95% confidence. " + getMatchHTML(matchBootstrap) + "</caption>",
" <thead>",
" <tr>",
" <td> (A) CTMD (Tauxe et al., 2010)</td>",
" <td></td>",
" <td></td>",
" <td></td>",
" <td></td>",
" <td></td>",
" <td></td>",
" <tr>",
" <td>Collection</td>",
" <td>xMinimum</td>",
" <td>xMaximum</td>",
Expand Down Expand Up @@ -2905,6 +2914,11 @@ function updateCTMDTable(names, xParams, yParams, zParams, CMDTValue, CMDTCritic
document.getElementById("bootstrap-table-new").innerHTML = [
" <thead>",
" <tr>",
" <td> (B) CMTD (Heslop et al., 2023)</title>",
" <td></td>",
" <td></td>",
" <td></td>",
" <tr>",
" <td>CMDT value</td>",
" <td>CMDT critical value</td>",
" <td>CMDT p-value</td>",
Expand Down

0 comments on commit 994fdbf

Please sign in to comment.