Skip to content

Commit def5ed4

Browse files
authored
Merge pull request #354 from Garbage123King/patch-1
Update patchs.rst
2 parents b5db45a + fcde0f3 commit def5ed4

File tree

1 file changed

+24
-35
lines changed

1 file changed

+24
-35
lines changed

doc/functions/patchs.rst

Lines changed: 24 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -177,39 +177,6 @@ each point in the patch.
177177
{"pcid":1,"pt":[-126.41,45.59,59,5]} | 7
178178
179179
180-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
181-
PC_PatchAvg
182-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
183-
184-
:PC_PatchAvg(p pcpatch, dimname text) returns numeric:
185-
186-
Reads the values of the requested dimension for all points in the patch and
187-
returns the average of those values. Dimension name must exist in the schema.
188-
189-
.. code-block::
190-
191-
SELECT PC_PatchAvg(pa, 'intensity')
192-
FROM patches WHERE id = 7;
193-
194-
5.0000000000000000
195-
196-
197-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
198-
PC_PatchMax
199-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
200-
201-
:PC_PatchMax(p pcpatch, dimname text) returns numeric:
202-
203-
Reads the values of the requested dimension for all points in the patch and
204-
returns the maximum of those values. Dimension name must exist in the schema.
205-
206-
.. code-block::
207-
208-
SELECT PC_PatchMax(pa, 'x')
209-
FROM patches WHERE id = 7;
210-
211-
-126.41
212-
213180
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
214181
PC_PatchMin
215182
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -241,6 +208,18 @@ Returns a PcPoint with the minimum values of each dimension in the patch.
241208
PC_PatchAvg
242209
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
243210

211+
:PC_PatchAvg(p pcpatch, dimname text) returns numeric:
212+
213+
Reads the values of the requested dimension for all points in the patch and
214+
returns the average of those values. Dimension name must exist in the schema.
215+
216+
.. code-block::
217+
218+
SELECT PC_PatchAvg(pa, 'intensity')
219+
FROM patches WHERE id = 7;
220+
221+
5.0000000000000000
222+
244223
:PC_PatchAvg(p pcpatch) returns pcpoint:
245224

246225
Returns a PcPoint with the average values of each dimension in the patch.
@@ -256,6 +235,18 @@ Returns a PcPoint with the average values of each dimension in the patch.
256235
PC_PatchMax
257236
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
258237

238+
:PC_PatchMax(p pcpatch, dimname text) returns numeric:
239+
240+
Reads the values of the requested dimension for all points in the patch and
241+
returns the maximum of those values. Dimension name must exist in the schema.
242+
243+
.. code-block::
244+
245+
SELECT PC_PatchMax(pa, 'x')
246+
FROM patches WHERE id = 7;
247+
248+
-126.41
249+
259250
:PC_PatchMax(p pcpatch) returns pcpoint:
260251

261252
Returns a PcPoint with the maximum values of each dimension in the patch.
@@ -267,7 +258,6 @@ Returns a PcPoint with the maximum values of each dimension in the patch.
267258
268259
{"pcid":1,"pt":[-126.41,45.59,59,5]}
269260
270-
271261
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
272262
PC_FilterGreaterThan
273263
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -284,7 +274,6 @@ value for the requested dimension.
284274
285275
{"pcid":1,"pts":[[-126.42,45.58,58,5],[-126.41,45.59,59,5]]}
286276
287-
288277
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
289278
PC_FilterLessThan
290279
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)