% Logistic_function_year: Calculates the projected year for a specified
% technology value using a logistic growth model.

% This function computes the projected year at which a given technology
% value will be reached using a logistic growth model with the provided
% parameters.


function [techprojectedyear] = Logistic_function_year(tech_value, ...
    technology_logistic_asymptote, technology_log_growth, ...
    technology_logistic_half_year)

    % Calculate the projected year with the inverse logistic growth formula:

    techprojectedyear = ...
        (- (log((technology_logistic_asymptote/tech_value)-1))...
        /technology_log_growth) + technology_logistic_half_year;
end

