cid#1636693 COPY_INSTEAD_OF_MOVE
[LibreOffice.git] / offapi / com / sun / star / report / Calculation.idl
blobf5752b0c74b9dde15a6b5887376a1ad59cbab6d7
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 module com { module sun { module star { module report {
25 /** Specifies how to calculate a value.
26 @see XFormattedField
28 constants Calculation
31 /** returns the average of a field.
33 const short NONE = 0;
35 /** returns the average of a field.
37 const short AVERAGE = 1;
39 /** returns the correlation of two fields.
41 const short CORRELATION = 2;
43 /** counts the number of values, from the field.
45 const short COUNT = 3;
47 /** returns the measure of the linear relation between paired variables.
49 const short COVARIANCE = 4;
51 /** returns the number of none repeating values, from the field.
53 const short DISTINCTCOUNT = 5;
55 /** returns the largest value from the field.
57 const short MAXIMUM = 6;
59 /** returns the middle value in a sequence of numeric values.
61 const short MEDIAN = 7;
63 /** returns the smallest value from the field.
65 const short MINIMUM = 8;
67 /** returns the most frequently returning value from the field.
69 const short MODE = 9;
71 /** returns the Nth largest value from the field.
73 const short NTHLARGEST = 10;
75 /** returns the Nth most commonly occurring value from the field.
77 const short NTHMOSTFREQUENT = 11;
79 /** returns the Nth smallest value from the field.
81 const short NTHSMALLEST = 12;
83 /** returns as a percentage of the grand total summary.
85 const short PERCENTAGE = 13;
87 /** returns the value for a specified percentile in a Number or Currency field.
89 const short PERCENTILE = 14;
91 /** returns how much each value in the field deviate from the mean or average value for that field.
93 const short POPSTANDARDDEVIATION = 15;
95 /** returns the square of the standard deviation.
97 const short POPVARIANCE = 16;
99 /** returns the sample standard deviation for the field.
101 const short SAMPLESTANDARDDEVIATION = 17;
103 /** returns the sample variance for the field.
105 const short SAMPLEVARIANCE = 18;
107 /** returns the total of all the values for the field.
109 const short SUM = 19;
111 /** returns the weighted average for the field.
113 const short WEIGHTEDAVG = 20;
117 }; }; }; };
119 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */