Home
last modified time | relevance | path

Searched refs:points (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/plugin/aichat/vendor/bdelespierre/php-kmeans/src/KMeans/
DCluster.php35 protected $points; variable in KMeans\\Cluster
40 $this->points = new \SplObjectStorage();
45 $points = [];
46 foreach ($this->points as $point) {
47 $points[] = $point->toArray();
52 'points' => $points,
62 $this->points->attach($point);
68 $this->points->detach($point);
72 public function attachAll(\SplObjectStorage $points): void argument
74 $this->points->addAll($points);
[all …]
/plugin/scrape/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/
DLength.php38 $points = substr($string, 0, $length - 1);
40 if (!is_numeric($points)) {
44 $points = (int)$points;
46 if ($points < 0) {
49 if ($points > 100) {
52 return ((string)$points) . '%';
/plugin/geophp/vendor/funiq/geophp/src/Geometry/
DLineString.php27 * @param Point[] $points An array of at least two points with
31 public function __construct($points = []) argument
33 parent::__construct($points);
38 $points = [];
40 $points[] = Point::fromArray($point);
42 return new static($points);
165 $points = $this->getPoints();
169 $lat1 = $points[$i]->y() * $rad;
170 $lat2 = $points[$i + 1]->y() * $rad;
171 $lon1 = $points[$i]->x() * $rad;
[all …]
DPolygon.php85 $points = $exteriorRing->getComponents();
87 $pointCount = count($points);
92 foreach ($points as $k => $p) {
94 $a = $a + ($p->x() * $points[$j]->y()) - ($p->y() * $points[$j]->x());
156 $points = $ring->getPoints();
157 $pointCount = count($points);
163 foreach ($points as $k => $point) {
165 $P = ($point->x() * $points[$j]->y()) - ($point->y() * $points[$j]->x());
166 $x += ($point->x() + $points[$j]->x()) * $P;
167 $y += ($point->y() + $points[$j]->y()) * $P;
DMultiLineString.php71 $points = [];
74 $points[] = $line->startPoint();
75 $points[] = $line->endPoint();
78 return new MultiPoint($points);
DCollection.php236 $points = [];
238 static::getPointsRecursive($this, $points);
239 return $points;
244 * @param Point[] $points Result array as reference
246 private static function getPointsRecursive($geometry, &$points) argument
250 $points[] = $component;
252 static::getPointsRecursive($component, $points);
DMultiPoint.php44 $points = [];
46 $points[] = Point::fromArray($point);
48 return new static($points);
/plugin/sketchcanvas/
DREADME.md49 points: '485,569:233,536'
51 points: '605,546:478,421'
53 points: '382,147:264,303'
56 points: '630,139:639,272'
59 points: '763,153:492,244'
63 points: '720,142:435,209'
67 points: '134,115:372,269'
71 points: '583,343'
74 points: '583,369'
78 points: '588,392'
[all …]
/plugin/authgooglesheets/vendor/google/apiclient-services/src/Contactcenterinsights/
DGoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries.php47 public function setPoints($points) argument
49 $this->points = $points;
56 return $this->points;
/plugin/socialshareprivacy2/SSP/scripts/
Djquery.socialshareprivacy.hackernews.js56 var points = $.fn.socialSharePrivacy.formatNumber(item.points);
58 $code.find(".points a").text(points).attr('title',
59 item.points === 1 ?
61 options.txt_n_points.replace(/{points}/g, points));
/plugin/aichat/vendor/bdelespierre/php-kmeans/
DREADME.md25 // prepare 50 points of 2D space to be clustered
26 $points = [
42 // add points to space
43 foreach ($points as $i => $coordinates) {
47 // cluster these 50 points in 3 clusters
50 // display the cluster centers and attached points
54 "Cluster %s [%d,%d]: %d points\n",
63 **Note:** the example is given with points of a 2D space but it will work with any dimention >1.
105 ### List all points of a space/cluster:
136 printf("Cluster %d [%d,%d]: %d points\n", $i, $cluster[0], $cluster[1], count($cluster));
Ddemo.php6 $points = [ variable
23 foreach ($points as $i => $coordinates) {
/plugin/sketchcanvas/script/
DSketchCanvas.js388 var pts = selectobj[n].points;
567 for(var i = 0; i < obj.points.length; i++){
568 var pt = obj.points[i];
597 for(var i = 0; i < obj.points.length; i++){
598 var pt = obj.points[i];
666 if(pointMovingIdx + idx < 0 || pointMoving.points.length <= pointMovingIdx + idx)
668 var p1 = pointMoving.points[pointMovingIdx + idx];
677 var dx = mx - pointMoving.points[pointMovingIdx].x;
678 var dy = my - pointMoving.points[pointMovingIdx].y;
679 pointMoving.points[pointMovingIdx].x = mx;
[all …]
/plugin/asciidocjs/node_modules/emoji-regex/
DREADME.md35 console.log(`Matched sequence ${ emoji } — code points: ${ [...emoji].length }`);
42 Matched sequence ⌚ — code points: 1
43 Matched sequence ⌚ — code points: 1
44 Matched sequence ↔️ — code points: 2
45 Matched sequence ↔️ — code points: 2
46 Matched sequence �� — code points: 1
47 Matched sequence �� — code points: 1
48 Matched sequence ���� — code points: 2
49 Matched sequence ���� — code points: 2
/plugin/diagramsnet/lib/js/diagramly/
DDevTools.js42 if (geo.points != null)
44 tip += 'points(' + geo.points.length + ')=';
46 for (var i = 0; i < geo.points.length; i++)
48 tip += parseFloat(geo.points[i].x) + ',' + parseFloat(geo.points[i].y) + ';';
/plugin/googlemap3/
Dsyntax.php85 $points = '';
89 $points .= ",{lat:$lat, lng:$lng, msg: '$msg', txt: '$text'}";
91 $points = ", overlay : [ ".substr($points,1)." ]";
94 $js = "googleMapArray[googleMapArray.length] = {".$param.$points." }; ";
/plugin/googlemaps/syntax/
Dgooglemap.php81 $points = '';
85 $points .= ",{lat:$lat,lon:$lon,txt:'$text'}";
87 $points = ", overlay : [ ".substr($points,1)." ]";
90 $js = "googlemap[googlemap.length] = {".$param.$points." };";
/plugin/authgooglesheets/vendor/google/apiclient-services/src/Monitoring/
DTimeSeries.php89 public function setPoints($points) argument
91 $this->points = $points;
98 return $this->points;
/plugin/geophp/vendor/funiq/geophp/src/Adapter/
DGeoRSS.php123 $points = [];
127 $points[] = !empty($pointArray) ? $pointArray[0] : new Point();
129 return $points;
150 $points = $this->getPointsFromCoordinates(trim($polygon->firstChild->nodeValue));
151 $exteriorRing = new LineString($points);
185 $points = [];
189 $points[] = new Point($parts[1], $parts[0]);
191 return $points;
DGeoJSON.php134 $points = [];
136 $points[] = $this->arrayToPoint($componentArray);
138 return new LineString($points);
157 $points = [];
159 $points[] = $this->arrayToPoint($componentArray);
161 return new MultiPoint($points);
DWKT.php142 $points = [];
144 $points[] = $this->parsePoint($part);
146 return new LineString($points);
177 $points = [];
183 $points[] = $this->parsePoint(trim($part, ' ()'));
185 return new MultiPoint($points);
/plugin/elasticsearch/vendor/ruflin/elastica/src/Query/
DGeoPolygon.php32 * @param array $points Points making up polygon
34 public function __construct(string $key, array $points) argument
37 $this->_points = $points;
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/BaseCurves/
DPrime.php524 public function multiplyAddPoints(array $points, array $scalars) argument
526 $length = count($points);
528 foreach ($points as &$point) {
532 $wnd = [$this->getNAFPoints($points[0], 7)];
533 $wndWidth = [isset($points[0]['nafwidth']) ? $points[0]['nafwidth'] : 7];
535 $wnd[] = $this->getNAFPoints($points[$i], 1);
536 $wndWidth[] = isset($points[$i]['nafwidth']) ? $points[$i]['nafwidth'] : 1;
555 $points[$a], // 1
558 $points[$b] // 7
561 $comb[1] = $this->addPoint($points[$a], $points[$b]);
[all …]
/plugin/osm/
Dscript.js4 var points = this.readPoints(div);
44 if (isArray(points)) {
49 for(var p = 0; p < points.length; p++) {
50 var point = points[p];
/plugin/a2s/
DASCIIToSVG.php1941 private $points; variable in dokuwiki\\plugin\\a2s\\SVGPath
1953 $this->points = array();
1975 $pPoints = count($this->points);
1977 $minY = $this->points[0]->y;
1978 $minX = $this->points[0]->x;
1981 if ($this->points[$i]->y <= $minY) {
1982 $minY = $this->points[$i]->y;
1984 if ($this->points[$i]->x < $minX) {
1985 $minX = $this->points[$i]->x;
1997 $startPoints = array_splice($this->points, $minIdx);
[all …]

12345678910>>...12