Team:NTU-Singapore/Parts/Curve1

From 2008.igem.org

(Difference between revisions)
Line 45: Line 45:
<br>
<br>
 +
<br><br>
 +
<html>
 +
<script language=Javascript1.2>
 +
<!--
 +
 +
var tags_before_clock = "<b>It is now "
 +
var tags_middle_clock = "on"
 +
var tags_after_clock  = "</b>"
 +
 +
if(navigator.appName == "Netscape") {
 +
document.write('<layer id="clock"></layer><br>');
 +
}
 +
 +
if (navigator.appVersion.indexOf("MSIE") != -1){
 +
document.write('<span id="clock"></span>');
 +
}
 +
 +
DaysofWeek = new Array()
 +
  DaysofWeek[0]="Sunday"
 +
  DaysofWeek[1]="Monday"
 +
  DaysofWeek[2]="Tuesday"
 +
  DaysofWeek[3]="Wednesday"
 +
  DaysofWeek[4]="Thursday"
 +
  DaysofWeek[5]="Friday"
 +
  DaysofWeek[6]="Saturday"
 +
 +
Months = new Array()
 +
  Months[0]="January"
 +
  Months[1]="February"
 +
  Months[2]="March"
 +
  Months[3]="April"
 +
  Months[4]="May"
 +
  Months[5]="June"
 +
  Months[6]="July"
 +
  Months[7]="August"
 +
  Months[8]="September"
 +
  Months[9]="October"
 +
  Months[10]="November"
 +
  Months[11]="December"
 +
 +
function upclock(){
 +
var dte = new Date();
 +
var hrs = dte.getHours();
 +
var min = dte.getMinutes();
 +
var sec = dte.getSeconds();
 +
var day = DaysofWeek[dte.getDay()]
 +
var date = dte.getDate()
 +
var month = Months[dte.getMonth()]
 +
var year = dte.getFullYear()
 +
 +
var col = ":";
 +
var spc = " ";
 +
var com = ",";
 +
var apm;
 +
 +
if (date == 1 || date == 21 || date == 31)
 +
  {ender = "<sup>st</sup>"}
 +
else
 +
if (date == 2 || date == 22)
 +
  {ender = "<sup>nd</sup>"}
 +
else
 +
if (date == 3 || date == 23)
 +
  {ender = "<sup>rd</sup>"}
 +
 +
else
 +
  {ender = "<sup>th</sup>"}
 +
 +
if (12 < hrs) {
 +
apm="<font size='-1'>pm</font>";
 +
hrs-=12;
 +
}
 +
 +
else {
 +
apm="<font size='-1'>am</font>";
 +
}
 +
 +
if (hrs == 0) hrs=12;
 +
if (hrs<=9) hrs="0"+hrs;
 +
if (min<=9) min="0"+min;
 +
if (sec<=9) sec="0"+sec;
 +
 +
if(navigator.appName == "Netscape") {
 +
document.clock.document.write(tags_before_clock+hrs+col+min+col+sec+apm+spc+tags_middle_clock+spc+day+com+spc+date+ender+spc+month+com+spc+year+tags_after_clock);
 +
document.clock.document.close();
 +
}
 +
 +
if (navigator.appVersion.indexOf("MSIE") != -1){
 +
clock.innerHTML = tags_before_clock+hrs+col+min+col+sec+apm+spc+tags_middle_clock+spc+day+com+spc+date+ender+spc+month+com+spc+year+tags_after_clock;
 +
}
 +
}
 +
 +
setInterval("upclock()",1000);
 +
//-->
 +
</script>
 +
</html>

Revision as of 05:53, 27 October 2008

Curve fit for 1mM Lactose

Graph of Gauss 1 to 4

As seen the 4th order Gaussian Fit does not give a result significantly better than the the 3rd order Gaussian fit. This is seen in the Spectral Residuals. We can use the 3rd order Gaussian fit as the curve for this Curve fit result.

Graph of Gauss 3

General model Gauss3:

      f(x) = 
a1*exp(-((x-b1)/c1)^2) + a2*exp(-((x-b2)/c2)^2) +
a3*exp(-((x-b3)/c3)^2)

Coefficients (with 95% confidence bounds):

      a1 =       84.12  (41.48, 126.7)
b1 = 3636 (3547, 3724)
c1 = 633.4 (491.2, 775.5)
a2 = 36.33 (23.83, 48.84)
b2 = 2678 (2601, 2756)
c2 = 502.4 (409.5, 595.2)
a3 = 493.4 (487.1, 499.6)
b3 = 2023 (1345, 2700)
c3 = 6855 (4681, 9029)

Goodness of fit:

 SSE: 129.2
R-square: 0.9947
Adjusted R-square: 0.994
RMSE: 1.399