1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
19 #ifndef __com_sun_star_report_Calculation_idl__
20 #define __com_sun_star_report_Calculation_idl__
24 module com
{ module sun
{ module star
{ module report
{
27 /** Specifies how to calculate a value.
33 /** returns the average of a field.
37 /** returns the average of a field.
39 const short AVERAGE
= 1;
41 /** returns the correlation of two fields.
43 const short CORRELATION
= 2;
45 /** counts the number of values, from the field.
47 const short COUNT
= 3;
49 /** returns the measure of the linear relation between paired variables.
51 const short COVARIANCE
= 4;
53 /** returns the number of none repeating values, from the field.
55 const short DISTINCTCOUNT
= 5;
57 /** returns the largest value from the field.
59 const short MAXIMUM
= 6;
61 /** returns the middle value in a sequence of numeric values.
63 const short MEDIAN
= 7;
65 /** returns the smallest value from the field.
67 const short MINIMUM
= 8;
69 /** returns the most frequently returning value from the field.
73 /** returns the Nth largest value from the field.
75 const short NTHLARGEST
= 10;
77 /** returns the Nth most commonly occurring value from the field.
79 const short NTHMOSTFREQUENT
= 11;
81 /** returns the Nth smallest value from the field.
83 const short NTHSMALLEST
= 12;
85 /** returns as a percentage of the grand total summary.
87 const short PERCENTAGE
= 13;
89 /** returns the value for a specified percentile in a Number or Currency field.
91 const short PERCENTILE
= 14;
93 /** returns how much each value in the field deviate from the mean or average value for that field.
95 const short POPSTANDARDDEVIATION
= 15;
97 /** returns the square of the standard deviation.
99 const short POPVARIANCE
= 16;
101 /** returns the sample standard deviation for the field.
103 const short SAMPLESTANDARDDEVIATION
= 17;
105 /** returns the sample variance for the field.
107 const short SAMPLEVARIANCE
= 18;
109 /** returns the total of all the values for the field.
111 const short SUM
= 19;
113 /** returns the weighted average for the field.
115 const short WEIGHTEDAVG
= 20;
123 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */