Name for the dataset:
Special features:
Lowest value:
Highest value:
Number of shifts:
Specify number from 1 to 30+, where 1 is the smoothest shift

$shift_counter) { $shift_distance = rand($shift_step * $shift_counter, ($shift_step * ($shift_counter+1)) - 1); if($shift_distance==$count+1) { $shift_distance++; } } } $sum = 0; $highlim = $highval - (rand(0, $dist) / rand(5, 10)); $lowlim = $lowval + (rand(0, $dist) / rand(5, 10)); $up++; if ($up==3) { $up = -1; } // GENERATE SAMPLES for($a=0; $a<$ssize; $a++) { // POSITIVE AUTOCORELLATION if($special=="poscor") { if(!isset($lastval)) { $value = $lowval + rand(0, $dist * 2); $sum = $sum + $value; } else { if($go_up==1) { $value = $lastval + (rand(0, $dist) / rand(3, 10)); if ($value>$highlim) { $value = $highlim; $go_down = 1; $go_up = 0; } $sum = $sum + $value; } else if ($go_down==1) { $value = $lastval - (rand(0, $dist) / rand(3, 10)); if ($value<$lowlim) { $value = $lowlim; $go_up = 1; $go_down = 0; } $sum = $sum + $value; } } if ($a==$ssize-1) { $lastval = $sum / $ssize; } } else if ($special=="gauss") { // GAUSS DISTRIBUTION $value = $mean + gauss() * $gauss_step; } else if ($special=="negcor") { // NEGATIVE AUTOCORELLATION if(!isset($lastval)) { $value = $lowval + rand(0, $dist * 2); $sum = $sum + $value; } else { if($go_up==1) { $value = $lastval + (rand(0, $dist) / rand(3, 10)); if ($value>$highlim) { $value = $highlim; $go_down = 1; $go_up = 0; } if ($up<1) { $tmp = $mean - $value; $value = $mean + ($value*-1); } $sum = $sum + $value; } else if ($go_down==1) { $value = $lastval - (rand(0, $dist) / rand(3, 10)); if ($value<$lowlim) { $value = $lowlim; $go_up = 1; $go_down = 0; } if ($up<1) { $tmp = $mean - $value; $value = $mean + ($value*-1); } $sum = $sum + $value; } } if ($a==$ssize-1) { $lastval = $sum / $ssize; } } else { // NORMAL DISTRIBUTION $value = $lowval + rand(0, $dist * 2); } // SHIFT INFO if($in_shift=="1") { $shi=1; $in_shift=0; } // PUT INTO DB $query = "insert into logs (moment, set_id, value, shift) values ('$i', '$new_id', '$value', '$shi')"; // printf("%f
\n", $value); mysql_query($query) or die(mysql_error()); } $shi=0; } ?>
Dataset was successfully generated. Go back to the main menu.