This document was successfully checked as XHTML 1.0 Transitional!

Result: Passed
:
Modified:(undefined)
Server:Apache/2.4.38 (Debian)
Size:3275
Content-Type:text/html
: utf-8
: XHTML 1.0 Transitional
Root Element: html
Root Namespace: http://www.w3.org/1999/xhtml
Options

Help on the options is available.

Congratulations

The document located at <http://web.tecnico.ulisboa.pt/~mcasquilho/compute/qc/Fx-sum-2Gauss.php> was successfully checked as XHTML 1.0 Transitional. This means that the resource in question identified itself as "XHTML 1.0 Transitional" and that we successfully performed a formal validation of it. The parser implementations we used for this check are based on OpenSP (SGML/XML) and libxml2 (XML).

"valid" Icon(s) on your Web page

To show your readers that you have taken the care to create an interoperable Web page, you may display this icon on any page that validates. Here is the HTML you could use to add this icon to your Web page:

Valid XHTML 1.0 Transitional
  <p>
    <a href="http://validator.w3.org/check?uri=referer"><img
      src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
  </p>
  

A full list of icons, with links to alternate formats and colors, is available: If you like, you can download a copy of the icons to keep in your local web directory, and change the HTML fragment above to reference your local image rather than the one on this server.

Linking to this result

If you would like to create a link to this page (i.e., this validation result) to make it easier to revalidate this page in the future or to allow others to validate your page, the URI is <http://validator.w3.org/check?uri=http%3A%2F%2Fweb.tecnico.ulisboa.pt%2F~mcasquilho%2Fcompute%2Fqc%2FFx-sum-2Gauss.php;ss=1;verbose=1> (or you can just add the current page to your bookmarks or hotlist).

Validating CSS Style Sheets

If you use CSS in your document, you can check it using the W3C CSS Validation Service.

↑ Top

Source Listing

Below is the source input I used for this validation:

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta name="Author" lang="en" content="Miguel Casquilho" />
  6. <title>M&middot;C, IST: sum of 2 Gaussians</title>
  7. <link rel="stylesheet" type="text/css"
  8. href="http://web.tecnico.ulisboa.pt/~mcasquilho/common/x_commonstyle.css" />
  9. <style type="text/css">
  10. body {background-image: url("http://web.tecnico.ulisboa.pt/~mcasquilho/common/circles-green.jpeg") } </style>
  11. <style type="text/css">
  12. a.special:hover {color: inherit; background-color: aqua} </style>
  13. </head> <!-- 26Apr2019 Apr2017 12Sep2009 MC -->
  14. <body class="sm">
  15. <form method="post" action=
  16. "http://web.tecnico.ulisboa.pt/~mcasquilho/cgi-bin/transfer.php?Sum2Gauss">
  17. <input name="executable" type="hidden" value="Sum2Gauss.exe" />
  18. <table width="90%" bgcolor="#eeeeee" align="center" border="1">
  19. <tr><td colspan="3">
  20. <table width="100%"> <!--title-->
  21. <tr><td width="50px"><a href='https://fenix.ist.utl.pt/departamentos/deq'><img alt='&copy;'
  22. src="http://web.tecnico.ulisboa.pt/~mcasquilho/depot/MC.gif" border='0'
  23. width='40' height='41' /></a>
  24. </td>
  25. <td><div style="font-size: 13.5pt; text-align: center"><!-- title --><b
  26. onmouseout="this.style.color='blue', this.style.fontStyle='normal'"
  27. onmouseover="this.style.color='red',
  28. this.style.fontStyle='bold'">
  29. Sum of
  30. two Gaussians</b></div><center>Draws Monte Carlo simulated curves
  31. for 2 Gaussians
  32. and their sum.<!--b> UNDER&nbsp;CONSTRUCTION</b--></center></td>
  33. <td width="112px"><table width='100%'>
  34. <tr><td align='center' bgcolor='white'>
  35. <input type="submit"
  36. value="&nbsp; Execute &nbsp;" style="background-color: #00bfff"
  37. onmouseout="this.style.fontStyle='normal', this.style.fontWeight='normal'"
  38. onmouseover="this.style.fontStyle='normal', this.style.fontWeight='bold'" /></td>
  39. </tr><tr><td align='center'><span style='font-size:
  40. xx-small'>2021.Mar.16 03:49:47</span></td></tr>
  41. </table>
  42. </td></tr></table>
  43. </td></tr> <!-- ................................................... -->
  44. <tr><td width="15%" align="center"><i>&mu;</i><sub>1</sub>,
  45. <i>&sigma;</i><sub>1</sub></td>
  46. <td width="45%"><input name="zmu1" type="text" value="9" size="4"
  47. maxlength="6" /><input name="sig1" type="text" value=".3" size="4"
  48. maxlength="6" /></td>
  49. <td>Parameters of the 1.st variable.</td></tr>
  50. <tr><td align="center"><i>&mu;</i><sub>2</sub>,
  51. <i>&sigma;</i><sub>2</sub></td>
  52. <td><input name="zmu2" type="text" value="5" size="4"
  53. maxlength="6" /><input name="sig2" type="text" value=".4" size="4"
  54. maxlength="6" /></td>
  55. <td>Parameters of the 2.nd variable.</td></tr>
  56. <tr><td align="center">ntr, .repeat, klass</td>
  57. <td>10^<input name="zntrlg" type="text" value="5.30" size="4"
  58. maxlength="4" />; <input name="irepeat" type="text" value="0" size="6"
  59. maxlength="10" /><select name="klass"><option value="100">100</option>
  60. <option value="200" selected="selected">200</option></select></td>
  61. <td>N. of trials, repeatability, n.&nbsp;of&nbsp;histogram
  62. classes. &bull;</td></tr>
  63. <tr><td align="center">Show values ?</td>
  64. <td><select name="ishow"><option value="0" selected="selected">No</option>
  65. <option value="1">Yes</option></select></td>
  66. <td>Shows the values of the graph coordinates.</td></tr>
  67. <!-- plot gnudata.dat \ (or anything: this line is a MANDATORY dummy) -->
  68. <tr><td colspan="3"><input name="gnuplot" type="hidden"
  69. value="wid = 600.
  70. set terminal png enhanced font 'Times, 16' size wid, wid/1.618
  71. set title 'Sum of 2 Gaussians' offset 0, -0.8
  72. set timestamp font 'Helvetica-Bold, 9' offset +5, +0.75
  73. set key top right font ', 12'
  74. set xlabel '{/Times-Italic x}' offset wid/50., +0.6
  75. #set lmargin at screen 25; set rmargin 5 # not working ?
  76. set lmargin 5; set rmargin 5
  77. set ylabel ' {/Times-Italic f}({/Times-Italic x})' rotate by 0 \
  78. offset 1.5, +3 # +2.75, 0
  79. set yrange [0:*]
  80. set tics font ', 13'
  81. #set lmargin at screen 25; set rmargin 5 # not working ?
  82. set grid xtics y2tics; set lmargin 7; set rmargin 6
  83. set style data filledcurves y1=0
  84. set style fill transparent solid 0.1 # border with filledcurves y1=0
  85. set style line 11 lc rgb 'red' lw 3
  86. set style line 12 lc rgb '#09ad00' lw 3 # green
  87. set style line 13 lc -1 lw 2
  88. set style line 14 lc rgb 'blue' lw 1 # '#0000ff' blue # '#ff1010' ?
  89. plot anyname.dat \
  90. usi 1:2 title '{/Times-Italic x}_1' with lines ls 11, \
  91. '' usi 1:3 title '{/Times-Italic x}_2' with lines ls 12, \
  92. '' usi 1:4 title '{/Times-Italic x}_S' with lines ls 13
  93. EOD
  94. " />&emsp;
  95. Draws 3 "Monte Carlo" <i>simulated</i> curves:
  96. for the 2 Gaussian variables (summands),
  97. <i>X</i><sub>1</sub> and <i>X</i><sub>2</sub>;
  98. and for the sum, <i>X</i> = <i>X</i><sub>1</sub> + <i>X</i><sub>2</sub>.
  99. It can be <i>verified</i> (as stated theoretically) that
  100. &nbsp;<i>(a)</i> the sum also is Gaussian, &nbsp;<i>(b)</i> with parameters:
  101. <i>&mu;</i> = <i>&mu;</i><sub>1</sub> + <i>&mu;</i><sub>2</sub> and
  102. <i>&sigma;</i> = &radic;(<i>&sigma;</i><sub>1</sub>&sup2; +
  103. <i>&sigma;</i><sub>2</sub>&sup2;) &nbsp;(from
  104. <i>&sigma;</i>&sup2;&nbsp;=
  105. <i>&sigma;</i><sub>1</sub>&sup2;&nbsp;+&nbsp;<i>&sigma;</i><sub>2</sub>&sup2;).
  106. <br />&emsp;Other suggested data sets (<i>&mu;, &sigma;</i>):
  107. 34, 0.33 / 66, 0.56;&emsp;
  108. 10, 1 / 11, 1;&emsp;
  109. 10, 0.5 / 10, 1.2;&emsp;
  110. 10, 3 / 20, 4 .
  111. <br />&emsp;[Pythagorean triples: (3, 4, 5), (5, 12, 13), (7, 24, 25),
  112. (8, 15, 17)...]</td></tr>
  113. <tr><td align="center"><input type="reset" style="font-size: smaller"
  114. value=" Reset " /></td><td><i>References:</i></td>
  115. <td align="center">Plate: Sum2Gaussians</td></tr>
  116. <tr><td colspan="3"><p class="ref">&bull;&nbsp;<span
  117. class="sc">Weisstein</span>, "<a href=
  118. "http://mathworld.wolfram.com/NormalSumDistribution.html"
  119. >Normal sum distribution</a>". From <i>MathWorld</i>&mdash;a
  120. Wolfram web resource.</p>
  121. <p class="ref">&bull;&nbsp;B. <a href=
  122. "http://web.ist.utl.pt/ist162478/PPIII/example.php">Franco</a> or
  123. <a href=
  124. "http://web.ist.utl.pt/ist11038/compute/qc/new/example.php">here</a>
  125. &bull;&nbsp;Search <a href=
  126. "http://www.google.pt/search?hl=en&amp;q=%22Monte+Carlo%22+method"><i>Monte
  127. Carlo</i> method</a>...</p>
  128. <p class="ref">&bull;&nbsp;<a href=
  129. "http://en.wikipedia.org/wiki/Normal_distribution">Normal distribution</a>
  130. (Wikipedia) &bull;&nbsp;"<a href=
  131. "http://www.cs.princeton.edu/introcs/11gaussian/">Gaussian or Normal</a>
  132. distribution ?" (Dept. of Computer Sci., Princeton U.).</p>
  133. <p class="ref">&bull;&nbsp;<span class="sc">Gorard</span>, Stephen, 2004,
  134. <a href="http://www.leeds.ac.uk/educol/documents/00003759.htm">Revisiting
  135. a 90-year-old debate: the advantages of the mean deviation</a>, <i>British
  136. Educational Research Association Annual Conference,</i> 16&ndash;18 Sep.
  137. (Univ. of York).</p>
  138. <p class="ref">&bull;&nbsp;<span
  139. class="sc">Weisstein</span>, "<a href=
  140. "http://mathworld.wolfram.com/PythagoreanTriple.html">Pythagorean triple</a>".
  141. From <i>MathWorld</i>&mdash;a Wolfram web resource.</p>
  142. <p class="ref">&bull;&nbsp;1873-09-13: <a href=
  143. "http://www-groups.dcs.st-and.ac.uk/~history/Biographies/Caratheodory.html"
  144. ><span class="sc">Carathéodory</span></a>, Constantin
  145. (1950-02-02).</p></td></tr>
  146. </table>
  147. </form>
  148. <div style="line-height: 12pt">&nbsp;</div>
  149. <div style="line-height: 1.5pt; color: black;
  150. background-color: red">&nbsp;</div>
  151. <table width="100%" class="sm"><tr>
  152. <td style="width: 58px"><a href=
  153. "http://validator.w3.org/check?uri=http://web.tecnico.ulisboa.pt/~mcasquilho/compute/qc/Fx-sum-2Gauss.php;verbose=1;ss=1"><img
  154. src="http://web.tecnico.ulisboa.pt/~mcasquilho/common/valid-xhtml10s.png"
  155. alt="Valid HTML 4.01!" style="border: none"
  156. width="55px" height="19px" /></a></td>
  157. <td style="width: 15%" align="left"><a href=
  158. "http://www.tecnico.ulisboa.pt"><img
  159. src="http://web.tecnico.ulisboa.pt/~mcasquilho/common/wwwist.png" alt="IST"
  160. style="vertical-align: middle; border: none;
  161. width: 88px; height: 34px" /></a></td>
  162. <td style="width: 70%" align="right"><i>http://web.tecnico.ulisboa.pt/~mcasquilho/compute/qc/Fx-sum-2Gauss.php</i><br />
  163. <i>Created:</i> 2009-09-13 &mdash; <i>Last modified:</i>
  164. 2019-04-28</td></tr></table>
  165. </body></html>

↑ Top