This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE FUNCTION shapedescr_sizes( | |
-- Shape-descriptor "as rectangle" for geometry description by sizes. | |
gbase geometry, -- input | |
-- p_seqs integer DEFAULT 8, -- deprecated? for st_buffer(g,w,p_seqs) or point-buffer inference | |
-- p_shape varchar DEFAULT '', -- will be endcap indicator | |
p_decplacesof_zero integer DEFAULT 6, -- precision of zero when rounding delta | |
p_dwmin float DEFAULT 99999999.0, -- change to ex. 0.0001, if to use. | |
p_deltaimpact float DEFAULT 9999.0 -- internal (maximized by probability of negative delta) | |
) RETURNS float[] AS $f$ | |
DECLARE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Simple benchmark-base for use in any simple benchmarking task. | |
* Use at terminal as $php benchmark_base.php | |
* For more complex or memory usage, see | |
* http://php.net/manual/en/ref.xhprof.php | |
* http://php.net/manual/en/function.set-time-limit.php | |
* http://php.net/manual/en/features.gc.performance-considerations.php | |
* From https://gist.github.com/ppKrauss/4cd3c9a5f7cec89be68e | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Detect language by trigram sample analysis. | |
* Adapted by ppkrauss from http://www.corpuswiki.org/langdetect.html | |
*/ | |
class LangDetect { | |
private $models; | |
private $universeConfig; | |
private $universeOnDetection; | |
private $isoTr3to2; |
NewerOlder