Files
Maxim Kadushkin 035166509d Merge pull request #2755 from ONLYOFFICE/feature/update-lunr-without-kor
Feature/update lunr without kor
2023-12-21 16:25:39 +03:00

54 lines
2.9 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html>
<head>
<title>TREND Function</title>
<meta charset="utf-8" />
<meta name="description" content="" />
<link type="text/css" rel="stylesheet" href="../../../../../../common/main/resources/help/editor.css" />
<link type = "text/css" rel = "stylesheet" href = "../../images/sprite.css" />
<script type="text/javascript" src="../callback.js"></script>
<script type="text/javascript" src="../../../../../../common/main/resources/help/search/js/page-search.js"></script>
</head>
<body>
<div class="mainpart">
<div class="search-field">
<input id="search" class="searchBar" placeholder="Search" type="text" onkeypress="doSearch(event)">
</div>
<h1>TREND Function</h1>
<p>The <b>TREND</b> function is one of the <a href="../UsageInstructions/InsertFunction.htm#statistical" onclick="onhyperlinkclick(this)">statistical functions</a>. It is used to calculate a linear trend line and returns values along it using the method of least squares.</p>
<h3>Syntax</h3>
<p><b><em>TREND(known_ys, [known_xs], [new_xs], [const])</em></b></p>
<p>The <b>TREND</b> function has the following arguments:</p>
<table style="width: 40%">
<tr>
<th style="background-color: #f4f4f4" width="150ch"><b>Argument</b></th>
<th style="background-color: #f4f4f4"><b>Description</b></th>
</tr>
<tr>
<td><b><em>known_ys</em></b></td>
<td>The set of y-values you already know in the <em>y = mx + b</em> equation.</td>
</tr>
<tr>
<td><b><em>known_xs</em></b></td>
<td>The optional set of x-values you might know in the <em>y = mx + b</em> equation.</td>
</tr>
<tr>
<td><b><em>new_xs</em></b></td>
<td>The optional set of x-values you want y-values to be returned to.</td>
</tr>
<tr>
<td><b><em>const</em></b></td>
<td>An optional argument. It is a TRUE or FALSE value where TRUE or lack of the argument forces <em>b</em> to be calculated normally and FALSE sets <em>b</em> to 0 in the <em>y = mx + b</em> equation and m-values correspond with the <em>y = mx</em> equation.</td>
</tr>
</table>
<h3>Notes</h3>
<p>Please note that this is an array formula. To learn more, please read the <a href="../UsageInstructions/InsertArrayFormulas.htm" onclick="onhyperlinkclick(this)">Insert array formulas</a> article.</p>
<p><a href="../UsageInstructions/InsertFunction.htm#applyfunction" onclick="onhyperlinkclick(this)">How to apply</a> the <b>TREND</b> function.</p>
<h3>Examples</h3>
<p>The figure below displays the result returned by the <b>TREND</b> function.</p>
<p><img alt="TREND Function" src="../images/trend.png" /></p>
</div>
</body>
</html>