mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 20:11:24 +01:00
Editing Coefficients
The coefficients have been changed so that the sign of the latitude does not affect the result
This commit is contained in:
parent
34e76455dd
commit
9830f4876b
1 changed files with 23 additions and 24 deletions
|
|
@ -9,34 +9,33 @@ function showTGForBurg(id) {
|
|||
const weights = [
|
||||
[//Layer0
|
||||
//IN0 IN1
|
||||
[1.7032805665330064, 9.76344839973784], //Neyron0
|
||||
[78.11570897168328, 14.601126748769655], //Neyron1...
|
||||
[-17.86260543967271, -18.89959889983629],
|
||||
[-5.096416157498042, -3.239101608785143],
|
||||
[15.135359078936663, -8.21750087038963],
|
||||
[2.89070853797873, 0.748597154917318],
|
||||
[-7.071033124823327, 1.0694133212613257],
|
||||
[30.89625278090631, -29.58412597781861],
|
||||
[8.83742206727876, 2.925882228813251],
|
||||
[-23.105918821529457, 59.975819969733955]
|
||||
[10.782752257744338, 2.7100404240962126],
|
||||
[-2.8226802110591462, 51.62920138583541],
|
||||
[-6.6250956268643835, 4.427939197315455],
|
||||
[-59.64690518541339, 41.89084162654791],
|
||||
[-1.3302059550553835, -3.6964487738450913],
|
||||
[-2.5844898544535497, 0.09879268612455298],
|
||||
[-5.58528252533573, -0.23426224364501905],
|
||||
[26.94531337690372, 20.898158905988907],
|
||||
[3.816397481634785, -0.19045424064580757],
|
||||
[-4.835697931609101, -10.748232783636434]
|
||||
],
|
||||
[//Layer1
|
||||
[-24.660066638519528, -6.444388451540001, 6.096317239481185, -28.634935067425154, 8.866490165643159, 25.542783838925033, 17.570826750545905, -6.67295071629475, -8.77729799869443, -88.98038329450236],
|
||||
[6.38376320044125, -2.7182778686238724, -1.9865485601337416, 10.917347591979627, 34.144968406291774, -32.11415334678534, -38.15179026431855, -11.51948938610541, 0.5380355040386701, -0.607356926268642],
|
||||
[-2.7768468273633093, -48.37419296453233, -62.61815919593951, -19.513164468492786, 93.1761828264018, 14.132428867566691, 17.590766480352126, -14.424771379214942, -40.16821165163309, -0.4757635185201129],
|
||||
[0.7126339045981811, 1.3807870964549949, -4.52694413868832, 8.859114020044535, -25.542800936427525, -17.052646819490533, -13.45262248737299, 19.04927696239682, 4.3772665027214215, 10.673504480995467],
|
||||
[-0.9901713313063913, 1.1537165068921644, 0.7627751991455828, -8.862080579381123, 4.095960737251427, 5.010172336857094, 10.078303996053119, -1.4715229465851472, -8.840479073062008, -0.35367530438937667],
|
||||
[3.004754427223695, -3.406260869341714, -18.468433323078546, 51.77036802551895, 65.24063311909613, -7.050118290901991, -29.013152721648716, -131.7678338510577, -32.49691343209261, 2.484670717084914]
|
||||
[-2.478952081870123, 0.6405800134306895, -7.136785640930911, -0.2186529024764509, 3.6568435212735424, 31.446026153530838, -19.91005187482281, 0.2543395274783306, -7.036924569659988, -0.7721371621651565],
|
||||
[-197.10583739743538, 6.889921141533474, 0.5058941504631129, 7.7667203434606416, -53.74180550086929, -15.717331715167001, -61.32068414155791, -2.259728220978728, 35.84049189540032, 94.6157364730977],
|
||||
[-5.312011591880851, -0.09923148954215096, -1.7132477487917586, -22.55559652066422, 0.4806107280554336, -26.5583974109492, 2.0558257347014863, 25.815645234787432, -18.569029876991156, -2.6792003366730035],
|
||||
[20.706518520569514, 18.344297403881875, 99.52244671131733, -58.53124969563653, -60.74384321042212, -80.57540534651835, 7.884792406540866, -144.33871131678563, 80.134199744324, 20.50745285622448],
|
||||
[-52.88299538575159, -15.782505343805528, 16.63316001054924, 88.09475330556671, -17.619552086641818, -19.943999528182427, -120.46286026828177, 19.354752020806302, 43.49422099308949, 28.733924806541363],
|
||||
[-2.4621368711159897, -1.2074759925679757, -1.5133898639835084, 2.173715352424188, -5.988707597991683, 3.0234147182203843, 3.3284199340000797, -1.8805161326360575, 5.151910934121654, -1.2540553911612116]
|
||||
],
|
||||
[//Layer2
|
||||
[1.7430650921661213, -0.2869375191565024, -0.8484945138945511, -0.9256615130832988, -6.319047898501307, 4.494914932369445],
|
||||
[0.9505278662318376, -1.1656186389912937, -2.578920014335076, -1.2897962843278608, -1.57363345004906, 0.937571776650802],
|
||||
[1.1869391990570621, 1.214292485154762, -3.0748452401175337, -2.6279324686504615, -0.6747453940846205, 1.1011366399902536]
|
||||
[-0.3357437479474717, 0.01430651794222215, -0.7927524256670906, 0.2121636229648523, 1.0587803023358318, -3.759288325505095],
|
||||
[-1.1988028704442968, 1.3768997508052783, -3.8480086358278816, 0.5289387340947143, 0.5769459339961177, -1.2528318145750772],
|
||||
[1.0074966649240946, 1.155301164699459, -2.974254371052421, 0.47408176553219467, 0.5939042688615264, -0.7631976947131744]
|
||||
]
|
||||
];
|
||||
|
||||
//From (-∞,∞) to ~[-1,1]
|
||||
const In1 = [(lat - 12.976592977893368)/81.9224728505465,(prec - 15.12743823146944)/38.5286376102066];
|
||||
const In1 = [(Math.abs(lat) - 26.950680212887473)/48.378128506956,(prec - 12.229929140832644)/29.94402033696607];
|
||||
|
||||
let lastIn = In1;
|
||||
let lstOut = [];
|
||||
|
|
@ -54,11 +53,11 @@ function showTGForBurg(id) {
|
|||
|
||||
//From [0,1] to [min,max]
|
||||
//Standard deviation for average temperature for the year
|
||||
const yearSig = lstOut[0]*62;
|
||||
const yearSig = lstOut[0]*62.9466411977018+0.28613807855649165;
|
||||
//Standard deviation for the difference between the minimum and maximum temperatures for the year
|
||||
const yearDelTmpSig = lstOut[1]*12 > yearSig ? yearSig : lstOut[1]*12;
|
||||
const yearDelTmpSig = (lstOut[1]*13.541688670361175+0.1414213562373084) > yearSig ? yearSig : (lstOut[1]*13.541688670361175+0.1414213562373084);
|
||||
//Expected value for the difference between the minimum and maximum temperatures for the year
|
||||
const yearDelTmpMu = lstOut[2]*15+1;
|
||||
const yearDelTmpMu = lstOut[2]*15.266666666666667+0.6416666666666663;
|
||||
|
||||
//Temperature change shape
|
||||
//const formTmp = -Math.cos(data*2*Math.PI) / 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue