SHARE
TWEET

Untitled

a guest Oct 30th, 2015 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. gausspeaksofdata3 = {{8, 3.6768107350157995`}, {19,
  2.     1.7265795640740835`}, {21, 1.68461324936646`}, {33,
  3.     1.1069106811194533`}, {46, 1.2009130021490542`}, {59,
  4.     0.9772368706413843`}, {72, 1.1318698677292955`}, {84,
  5.     1.038072134986277`}, {96, 1.0929175446352524`}, {108,
  6.     1.065212739116987`}, {121, 1.1941786521933588`}, {134,
  7.     1.138875161656097`}, {147, 1.069169898082488`}, {160,
  8.     0.9749718995119014`}, {172, 1.022237699399568`}, {185,
  9.     1.0226130377486218`}, {198, 1.0542937911872086`}, {210,
  10.     1.0771681933866217`}, {222, 1.0301632670827212`}, {235,
  11.     1.0296883850229683`}, {248, 1.0882629402988337`}, {261,
  12.     1.0288018372865428`}, {273, 1.1005150445767518`}, {286,
  13.     1.1278573282966748`}, {299, 1.0282219769482186`}, {312,
  14.     1.1145365287285642`}, {325, 1.112898018614131`}, {336,
  15.     0.9374853858339725`}, {338, 0.9316930770925849`}, {350,
  16.     1.154857856643452`}, {362, 1.025621875864526`}, {375,
  17.     1.0631646245423285`}, {388, 1.0926090042010737`}, {400,
  18.     1.0685202888503706`}, {413, 1.1321004788171978`}, {426,
  19.     1.0491297882978365`}, {438, 1.1348042363600586`}, {451,
  20.     1.0296404097316536`}, {463, 1.0297147467394412`}, {476,
  21.     1.035043354095011`}, {490, 0.9290214962495806`}, {501,
  22.     0.958336916162259`}, {514, 0.98920288931006`}, {527,
  23.     1.0272446400760158`}, {540, 0.9526852280091687`}, {552,
  24.     1.0504238975569873`}, {565, 1.0191019794230742`}, {577,
  25.     1.096347114248104`}, {590, 0.8646134862146102`}, {603,
  26.     0.9836908573098819`}, {616, 0.9639597303618554`}, {628,
  27.     1.0174430716471203`}, {641, 1.0447200448550502`}, {653,
  28.     0.9482628119730387`}, {666, 1.0444185324381374`}, {679,
  29.     1.061458758722261`}, {692, 0.967522028131639`}, {704,
  30.     0.9999190495103338`}, {717, 1.0063250848652086`}, {729,
  31.     0.9945886418418493`}, {742, 1.0013528992182552`}, {755,
  32.     1.0358190817551023`}, {768, 0.9596883848052142`}, {780,
  33.     0.9592680264369342`}, {793, 1.0133422106252112`}, {805,
  34.     0.8799156469312166`}, {818, 0.922986669592289`}, {831,
  35.     0.9805382556223048`}, {844, 0.9373623887268732`}, {856,
  36.     0.9123984356702834`}, {869, 0.9677674714809381`}, {881,
  37.     0.8942424197531018`}, {894, 1.0074074878817614`}, {907,
  38.     0.9562899964850304`}, {920, 0.8814434364970865`}, {932,
  39.     0.9076223636120826`}, {945, 0.9567335728256428`}, {958,
  40.     0.9027894171649269`}, {970, 0.9339469044940918`}, {983,
  41.     0.8766578622308812`}, {996, 0.8972834879855007`}, {1008,
  42.     0.9298374901091142`}, {1021, 0.9355106800728024`}, {1034,
  43.     0.9026392156674996`}, {1046, 0.8727699179300918`}, {1059,
  44.     0.90373255940034`}, {1072, 0.872400793159871`}, {1084,
  45.     0.8933541622407981`}, {1097, 0.8856150332309092`}, {1110,
  46.     0.854512326056958`}, {1122, 0.8815231902904426`}, {1135,
  47.     0.9021874239028493`}, {1148, 0.8480902022082883`}, {1160,
  48.     0.8574404543053786`}, {1173, 0.9052122157026155`}, {1186,
  49.     0.8728704933541431`}, {1198, 0.8629856863790177`}, {1211,
  50.     0.8987319455486533`}, {1224, 0.8650237784331534`}, {1236,
  51.     0.8269189444138778`}, {1249, 0.8570902687214117`}, {1262,
  52.     0.8187703855739148`}, {1274, 0.838437700813083`}, {1287,
  53.     0.8318417498926749`}, {1300, 0.8545447851685184`}, {1312,
  54.     0.8157937083440991`}, {1325, 0.882745419480111`}, {1338,
  55.     0.8473784815568521`}, {1350, 0.8137349984336142`}, {1363,
  56.     0.8991890331260821`}, {1376, 0.8813207906020635`}, {1388,
  57.     0.8636647800378094`}, {1401, 0.9254164455451148`}, {1414,
  58.     0.9075714189112665`}, {1426, 0.9070578283921336`}, {1439,
  59.     1.0296658890784425`}, {1452, 1.1126970521394375`}, {1464,
  60.     1.0946489906614971`}, {1477, 1.2564525561067619`}, {1490,
  61.     1.3720643688832084`}, {1502, 1.424636183308591`}, {1515,
  62.     1.7427280017528153`}, {1528, 1.9983207450217035`}, {1541,
  63.     2.172999051100148`}, {1553, 2.567432268731176`}, {1566,
  64.     2.9109552068354283`}, {1579, 3.1977963350559655`}, {1591,
  65.     3.6573545117569877`}, {1604, 4.176376562039218`}, {1617,
  66.     4.565822965553131`}, {1629, 4.973763530443036`}, {1642,
  67.     5.323034593538818`}, {1655, 5.460345759464626`}, {1667,
  68.     5.5401556428728735`}, {1680, 5.592867586345309`}, {1693,
  69.     5.607761226401503`}, {1705, 5.976828953637871`}, {1718,
  70.     5.93074300257159`}, {1731, 6.019728918177189`}, {1743,
  71.     6.0209599310279085`}, {1756, 6.320660872102788`}, {1769,
  72.     6.299108851374107`}, {1781, 6.48236820432576`}, {1794,
  73.     6.8686918425953`}, {1807, 7.086594842832111`}, {1819,
  74.     7.129668234865116`}, {1832, 7.153315480740559`}, {1845,
  75.     7.498424065421337`}, {1857, 7.776861420034739`}, {1870,
  76.     8.923949454656352`}, {1888, 1.9636052420176449`}};
  77.  
  78. dataconfig = {A[#], \[Mu][#], \[Sigma][#]} & /@
  79.    Range[Length@gausspeaksofdata3];
  80. zerod = {A[#], 0, \[Sigma][#]} & /@ Range[Length@gausspeaksofdata3];
  81. gaussian[A_, \[Mu]_, \[Sigma]_, x_] =
  82.   A^2 E^(-((x - \[Mu])^2/(2 \[Sigma]^2)));
  83.  
  84. FindFit[adjusteddata, {gaussian[##, x] & @@@ dataconfig // Total,
  85.   gaussian[##] & @@@ zerod = Flatten@gausspeaksofdata3[[All, 2]], x} ,
  86.   Flatten@dataconfig, x]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top