publicdoubleterr_alpha_init_offs=0.01;// Initial alpha: opaque/transparent offset from 1.0/0.0
publicdoubleterr_alpha_init_offs=0.01;// Initial alpha: opaque/transparent offset from 1.0/0.0
publicdoubleterr_alpha_loss=100.0;
publicdoubleterr_alpha_loss=100.0;
publicdoubleterr_alpha_offset=0.0;
publicdoubleterr_alpha_offset=0.1;
publicdoubleterr_alpha_min_veg=-1;// old version 0.5; // Minimal vegetation alpha. If (alpha-alpha_offset)/(1-2*alpha_offset) < alpha_min_veg, pull down to lpha_offset
publicdoubleterr_alpha_lpf=2.5;// pull to average of 4 neighbors
publicdoubleterr_alpha_lpf=2.5;// pull to average of 4 neighbors
publicbooleanterr_alpha_piece_linear=true;
publicbooleanterr_alpha_piece_linear=true;
publicdoubleterr_alpha_scale_avg=1.0;// scale average alpha (around 0.5) when pulling to it
publicdoubleterr_alpha_scale_avg=1.0;// scale average alpha (around 0.5) when pulling to it
...
@@ -2102,6 +2105,8 @@ min_str_neib_fpn 0.35
...
@@ -2102,6 +2105,8 @@ min_str_neib_fpn 0.35
gd.addNumericField("Alpha loss",terr_alpha_loss,5,7,"","Alpha quadratic growing loss for when out of [0,1] range");
gd.addNumericField("Alpha loss",terr_alpha_loss,5,7,"","Alpha quadratic growing loss for when out of [0,1] range");
gd.addNumericField("Alpha offset",terr_alpha_offset,5,7,"","Start alpha losses above 0.0 and below 1.0 by this value.");
gd.addNumericField("Alpha offset",terr_alpha_offset,5,7,"","Start alpha losses above 0.0 and below 1.0 by this value.");
gd.addNumericField("Minimal vegetation alpha",terr_alpha_min_veg,5,7,"","Minimal vegetation alpha. If (alpha-alpha_offset)/(1-2*alpha_offset) < alpha_min_veg, pull down to lpha_offset.");
gd.addNumericField("Alpha diffusion",terr_alpha_lpf,5,7,"","Alpha diffusion to 4 ortho neighbors.");
gd.addNumericField("Alpha diffusion",terr_alpha_lpf,5,7,"","Alpha diffusion to 4 ortho neighbors.");
doublealpha_loss=clt_parameters.imp.terr_alpha_loss;//100.0; // 10.0; /// 100.0; // 10.0; // 10000.0; // 1000.0; // 100.; // 10.0; // quadratic loss when alpha reaches -1.0 or 2.0
doublealpha_loss=clt_parameters.imp.terr_alpha_loss;//100.0; // 10.0; /// 100.0; // 10.0; // 10000.0; // 1000.0; // 100.; // 10.0; // quadratic loss when alpha reaches -1.0 or 2.0
doublealpha_offset=clt_parameters.imp.terr_alpha_offset;// 0.0; // 0.02; // 0.03; // if >0, start losses above 0.0 and below 1.0;
doublealpha_offset=clt_parameters.imp.terr_alpha_offset;// 0.0; // 0.02; // 0.03; // if >0, start losses above 0.0 and below 1.0;
doublealpha_min_veg=clt_parameters.imp.terr_alpha_min_veg;// 0.5 // Minimal vegetation alpha. If (alpha-alpha_offset)/(1-2*alpha_offset) < alpha_min_veg, pull down to lpha_offset
doublealpha_scale_avg=clt_parameters.imp.terr_alpha_scale_avg;// 1.0; // 1.1; // 0.9; // 2.0; // 1.5; // scale average alpha (around 0.5) when pulling to it
doublealpha_scale_avg=clt_parameters.imp.terr_alpha_scale_avg;// 1.0; // 1.1; // 0.9; // 2.0; // 1.5; // scale average alpha (around 0.5) when pulling to it
...
@@ -2007,6 +2009,7 @@ public class VegetationModel {
...
@@ -2007,6 +2009,7 @@ public class VegetationModel {
reg_weights,// final double reg_weights, // fraction of the total weight used for regularization
reg_weights,// final double reg_weights, // fraction of the total weight used for regularization
alpha_loss,// final double alpha_loss, // quadratic loss when alpha reaches -1.0 or 2.0
alpha_loss,// final double alpha_loss, // quadratic loss when alpha reaches -1.0 or 2.0
alpha_offset,// final double alpha_offset, // quadratic loss when alpha reaches -1.0 or 2.0
alpha_offset,// final double alpha_offset, // quadratic loss when alpha reaches -1.0 or 2.0
alpha_min_veg,//final double alpha_min_veg, // 0.5; // if (alpha-alpha_offset)/(1-2*alpha_offset) < alpha_min_veg, pull down to lpha_offset
alpha_lpf,// final double alpha_lpf, // pull to average of 4 neighbors
alpha_lpf,// final double alpha_lpf, // pull to average of 4 neighbors