Did you know ... | Search Documentation: |
![]() | Pack logtalk -- logtalk-3.81.0/docs/_sources/halstead_metric_1.rst.txt |
.. index:: halstead_metric(Stroud)
.. _halstead_metric/1:
.. rst-class:: right
object
halstead_metric(Stroud)
Stroud
- Coefficient for computing the time required to program.
Computes Halstead complexity numbers for an entity.
| Availability:
| logtalk_load(code_metrics(loader))
| Author: Paulo Moura | Version: 0:9:0 | Date: 2024-03-27
| Compilation flags:
| static, context_switching_calls
| Imports:
| public
:ref:`code_metrics_utilities <code_metrics_utilities/0>`
| public
:ref:`code_metric <code_metric/0>`
| Uses:
| :ref:`list <list/0>`
| :ref:`numberlist <numberlist/0>`
| :ref:`pairs <pairs/0>`
| Remarks:
EV = Pn + PAn
.EL = Cn + CAn
.V = EL * log2(EV)
.D = (Pn/2) * (CAn/An)
.E = D * V
.T = E/k
seconds (k
is the Stroud number; defaults to 18).B = V/3000
.| Inherited public predicates: | Â :ref:`code_metric/0::all/0` Â :ref:`code_metric/0::all/1` Â :ref:`code_metric/0::all_score/1` Â :ref:`options_protocol/0::check_option/1` Â :ref:`options_protocol/0::check_options/1` Â :ref:`options_protocol/0::default_option/1` Â :ref:`options_protocol/0::default_options/1` Â :ref:`code_metric/0::directory/1` Â :ref:`code_metric/0::directory/2` Â :ref:`code_metric/0::directory_score/2` Â :ref:`code_metric/0::entity/1` Â :ref:`code_metric/0::entity_score/2` Â :ref:`code_metric/0::file/1` Â :ref:`code_metric/0::file/2` Â :ref:`code_metric/0::file_score/2` Â :ref:`code_metric/0::format_entity_score//2` Â :ref:`code_metric/0::library/1` Â :ref:`code_metric/0::library/2` Â :ref:`code_metric/0::library_score/2` Â :ref:`options_protocol/0::option/2` Â :ref:`options_protocol/0::option/3` Â :ref:`code_metric/0::rdirectory/1` Â :ref:`code_metric/0::rdirectory/2` Â :ref:`code_metric/0::rdirectory_score/2` Â :ref:`code_metric/0::rlibrary/1` Â :ref:`code_metric/0::rlibrary/2` Â :ref:`code_metric/0::rlibrary_score/2` Â :ref:`options_protocol/0::valid_option/1` Â :ref:`options_protocol/0::valid_options/1` Â
.. contents:: :local: :backlinks: top
(no local declarations; see entity ancestors if any)
(no local declarations; see entity ancestors if any)
(no local declarations; see entity ancestors if any)
(none)