Difference between revisions of "NL/Documentation/How Tos/Calc: functie MODUS"
From Apache OpenOffice Wiki
< NL | Documentation | How Tos
m (moved Documentation/nl/How Tos/Calc: functie MODUS to NL/Documentation/How Tos/Calc: functie MODUS: Moving NL documentation to the NL NLC section of the Wiki) |
m (→Voorbeeld:) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
=== Syntaxis: === | === Syntaxis: === | ||
− | <tt>'''MODUS(getal1; getal2; | + | <tt>'''MODUS(getal1; getal2; … getal30)'''</tt> |
: <tt>'''getal1'''</tt> tot en met <tt>'''getal30'''</tt> zijn maximaal 30 getallen of bereiken/matrices die getallen bevatten. | : <tt>'''getal1'''</tt> tot en met <tt>'''getal30'''</tt> zijn maximaal 30 getallen of bereiken/matrices die getallen bevatten. | ||
Line 22: | Line 22: | ||
− | <i>Gevorderd onderwerp:</i> Evaluatie als een [[Documentation | + | <i>Gevorderd onderwerp:</i> Evaluatie als een [[NL/Documentation/How_Tos/Matrices gebruiken|matrixformule]]: |
<tt>'''MODUS(ABS({1; 1; 1; 2; 2; -2; -2}))'''</tt> | <tt>'''MODUS(ABS({1; 1; 1; 2; 2; -2; -2}))'''</tt> | ||
− | : geeft <tt>'''2'''</tt> terug. De functie <tt>'''ABS'''</tt> neemt normaal gesproken slechts één getal, maar hier wordt het opgegeven als een matrix. <tt>'''MODUS'''</tt> | + | : geeft <tt>'''2'''</tt> terug. De functie <tt>'''ABS'''</tt> neemt normaal gesproken slechts één getal, maar hier wordt het opgegeven als een matrix. <tt>'''MODUS'''</tt> forceert de formule om een matrixformule te zijn, zodat de absolute waarde van elk getal in de matrix wordt gevonden, en wordt doorgegeven aan <tt>'''MODUS'''</tt> als de matrix {1; 1; 1; 2; 2; 2; 2}. De meest voorkomende waarde is nu <tt>'''2'''</tt>. |
− | + | {{NL/Documentation/ZieOok| | |
− | * | + | * [[NL/Documentation/How_Tos/Calc: functie GEMIDDELDE|GEMIDDELDE]] |
+ | * [[NL/Documentation/How_Tos/Calc: functie GEMIDDELDEA|GEMIDDELDEA]] | ||
+ | * [[NL/Documentation/How_Tos/Calc: functie MEDIAAN|MEDIAAN]] | ||
− | + | * [[NL/Documentation/How_Tos/Calc: functie ABS|ABS]] | |
− | |||
− | * [[ | ||
− | |||
− | * [[Documentation | + | * [[NL/Documentation/How_Tos/Calc: Statistische functies|Statistische functies]] |
− | * [[Documentation | + | * [[NL/Documentation/How_Tos/Matrices gebruiken|Matrices gebruiken]] |
− | * [[ | + | * [[NL/Documentation/How_Tos/Calc: Functies alfabetisch gesorteerd|Functies - alfabetisch gesorteerd]] |
− | + | * [[NL/Documentation/How_Tos/Calc: Functies gesorteerd per categorie|Functies - gesorteerd per categorie]]}} | |
− | |||
− | * [[Documentation | ||
[[Category: NL/Documentation/Reference/Calc]] | [[Category: NL/Documentation/Reference/Calc]] |
Latest revision as of 15:29, 28 January 2024
MODUS
Geeft de meest voorkomende waarde in een verzameling van getallen terug.
Syntaxis:
MODUS(getal1; getal2; … getal30)
- getal1 tot en met getal30 zijn maximaal 30 getallen of bereiken/matrices die getallen bevatten.
- MODUS geeft het getal terug dat het meeste voorkomt, of indien meer dan één getal zoveel keer voorkomt, het kleinste van die getallen. Als er geen getal is dat meer dan één keer voorkomt geeft MODUS een fout terug.
- Gevorderd onderwerp: MODUS evalueert zijn parameters als matrixformules - zie de voorbeelden.
Voorbeeld:
MODUS(A1:A4)
- waar de cellen A1:A4 1, 3, 2 en 3 bevatten, geeft 3 terug, het getal dat het meest voorkomt.
MODUS(3; 7; 3; 9; 9; 3; 5; 1; 9; 5)
- geeft 3 terug. Het getal 9 komt hetzelfde aantal keren voor, maar 3 is kleiner.
Gevorderd onderwerp: Evaluatie als een matrixformule:
MODUS(ABS({1; 1; 1; 2; 2; -2; -2}))
- geeft 2 terug. De functie ABS neemt normaal gesproken slechts één getal, maar hier wordt het opgegeven als een matrix. MODUS forceert de formule om een matrixformule te zijn, zodat de absolute waarde van elk getal in de matrix wordt gevonden, en wordt doorgegeven aan MODUS als de matrix {1; 1; 1; 2; 2; 2; 2}. De meest voorkomende waarde is nu 2.
Zie ook