<commit_before><?php

declare(strict_types=1);

namespace mcordingley\Regression\Linkings;

use mcordingley\Regression\OutputTransformer;

/**
 * Linking
 * 
 * Inheriting classes are instances of linking functions as defined here:
 * 
 * https://en.wikipedia.org/wiki/Generalized_linear_model#Link_function
 * 
 * Each Linking object is a matched pair of the link and mean functions. Only
 * the mean function is used directly by this library. The link function is
 * provided for completeness and convenience.
 */
abstract class Linking implements OutputTransformer
{
    /**
     * delinearize
     * 
     * Also known as the "Mean Function".
     * 
     * @param float $value
     * @return float
     */
    abstract public function delinearize(float $value): float;
    
    /**
     * linearize
     * 
     * Also known as the "Link Function".
     * 
     * @param float $value
     * @return float
     */
    abstract public function linearize(float $value): float;
}<commit_msg>Formatting.<commit_after><?php

declare(strict_types=1);

namespace mcordingley\Regression\Linkings;

use mcordingley\Regression\OutputTransformer;

/**
 * Linking
 *
 * Inheriting classes are instances of linking functions as defined here:
 *
 * https://en.wikipedia.org/wiki/Generalized_linear_model#Link_function
 *
 * Each Linking object is a matched pair of the link and mean functions. Only
 * the mean function is used directly by this library. The link function is
 * provided for completeness and convenience.
 */
abstract class Linking implements OutputTransformer
{
    /**
     * delinearize
     *
     * Also known as the "Mean Function".
     *
     * @param float $value
     * @return float
     */
    abstract public function delinearize(float $value): float;

    /**
     * linearize
     *
     * Also known as the "Link Function".
     *
     * @param float $value
     * @return float
     */
    abstract public function linearize(float $value): float;
}

{'fraction_non_alphanumeric': 0.08874239350912778, 'fraction_numerical': 0.0010141987829614604, 'mean_word_length': 2.9778225806451615, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6167357', 'n_tokens_mistral': 563, 'n_tokens_neox': 543, 'n_words': 182}