GET
- Getter:
public
Code
Declaration
(*
## Short summary
Function to calculate the height of a tree, as its a balanced binary tree, is defined as
height := log\ :sub:`2`\(Nodeamount) (Truncated)
log\ :sub:`2`\(x) := log(x)/log(2)
.. <legal notes>
legal notes
=================
| SPDX-FileCopyrightText: © 2022 ekvip automation GmbH <info@ekvip.de>
| SPDX-License-Identifier: Apache-2.0
| For details check: Apache-2.0_
.. _Apache-2.0: https://www.apache.org/licenses/LICENSE-2.0
.. </legal notes>
*)
VAR
END_VAR
Implementation
treeHeight := log2(THIS^.size);