[f9c482b] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | * Copyright 2014 Google Inc.
|
---|
| 4 | *
|
---|
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
| 6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
| 7 | * the License at
|
---|
| 8 | *
|
---|
| 9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 10 | *
|
---|
| 11 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
| 14 | * License for the specific language governing permissions and limitations under
|
---|
| 15 | * the License.
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | namespace Google\Service\CloudNaturalLanguage;
|
---|
| 19 |
|
---|
| 20 | class XPSFloat64Stats extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'quantiles';
|
---|
| 23 | protected $commonStatsType = XPSCommonStats::class;
|
---|
| 24 | protected $commonStatsDataType = '';
|
---|
| 25 | protected $histogramBucketsType = XPSFloat64StatsHistogramBucket::class;
|
---|
| 26 | protected $histogramBucketsDataType = 'array';
|
---|
| 27 | public $mean;
|
---|
| 28 | public $quantiles;
|
---|
| 29 | public $standardDeviation;
|
---|
| 30 |
|
---|
| 31 | /**
|
---|
| 32 | * @param XPSCommonStats
|
---|
| 33 | */
|
---|
| 34 | public function setCommonStats(XPSCommonStats $commonStats)
|
---|
| 35 | {
|
---|
| 36 | $this->commonStats = $commonStats;
|
---|
| 37 | }
|
---|
| 38 | /**
|
---|
| 39 | * @return XPSCommonStats
|
---|
| 40 | */
|
---|
| 41 | public function getCommonStats()
|
---|
| 42 | {
|
---|
| 43 | return $this->commonStats;
|
---|
| 44 | }
|
---|
| 45 | /**
|
---|
| 46 | * @param XPSFloat64StatsHistogramBucket[]
|
---|
| 47 | */
|
---|
| 48 | public function setHistogramBuckets($histogramBuckets)
|
---|
| 49 | {
|
---|
| 50 | $this->histogramBuckets = $histogramBuckets;
|
---|
| 51 | }
|
---|
| 52 | /**
|
---|
| 53 | * @return XPSFloat64StatsHistogramBucket[]
|
---|
| 54 | */
|
---|
| 55 | public function getHistogramBuckets()
|
---|
| 56 | {
|
---|
| 57 | return $this->histogramBuckets;
|
---|
| 58 | }
|
---|
| 59 | public function setMean($mean)
|
---|
| 60 | {
|
---|
| 61 | $this->mean = $mean;
|
---|
| 62 | }
|
---|
| 63 | public function getMean()
|
---|
| 64 | {
|
---|
| 65 | return $this->mean;
|
---|
| 66 | }
|
---|
| 67 | public function setQuantiles($quantiles)
|
---|
| 68 | {
|
---|
| 69 | $this->quantiles = $quantiles;
|
---|
| 70 | }
|
---|
| 71 | public function getQuantiles()
|
---|
| 72 | {
|
---|
| 73 | return $this->quantiles;
|
---|
| 74 | }
|
---|
| 75 | public function setStandardDeviation($standardDeviation)
|
---|
| 76 | {
|
---|
| 77 | $this->standardDeviation = $standardDeviation;
|
---|
| 78 | }
|
---|
| 79 | public function getStandardDeviation()
|
---|
| 80 | {
|
---|
| 81 | return $this->standardDeviation;
|
---|
| 82 | }
|
---|
| 83 | }
|
---|
| 84 |
|
---|
| 85 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 86 | class_alias(XPSFloat64Stats::class, 'Google_Service_CloudNaturalLanguage_XPSFloat64Stats');
|
---|