예제 #1
0
def main():
    """
    Main function to call appropriate functions to compute all the stats
    
    :return: Nothing
    :rtype: None
    """

    # Getting the path for logging config using arparse
    log_config_file = helper.ARGUMENTS.logfile

    # Configuring logging
    helper.configure_logging(log_config_file)

    solutions.get_stats(helper.ARGUMENTS.inputfile)
def main():
    """
    Main function to Find the Derivative of Some functions
    
    :return: Nothing
    :rtype: None
    """

    # Getting the path for logging config using arparse
    log_config_file = helper.ARGUMENTS.logfile

    # Configuring logging
    helper.configure_logging(log_config_file)

    # Finding the derivatives of some functions
    solutions.find_derivatives()
def main():
    """
    Main function for finding the simple moving average(SMA), expanding window  average(EM) of Given Array
    
    :return: Nothing
    :rtype: None
    """

    # Getting the path for logging config using arparse
    log_config_file = helper.ARGUMENTS.logfile

    # Configuring logging
    helper.configure_logging(log_config_file)

    input_vector = helper.get_vector_from_file(helper.ARGUMENTS.inputfile)

    # Finding the SMA and EM of the given vector
    solutions.find_sma_em(input_vector, 4)
예제 #4
0
def main():
    """
    Main function to 
    
    :return: Nothing
    :rtype: None
    """

    # Getting the path for logging config using arparse
    log_config_file = helper.ARGUMENTS.logfile

    # Configuring logging
    helper.configure_logging(log_config_file)

    # Plotting the Curves
    solutions.plot_curves(helper.ARGUMENTS.x_min_cs, helper.ARGUMENTS.x_max_cs, helper.ARGUMENTS.x_min_sig,
                          helper.ARGUMENTS.x_max_sig, helper.ARGUMENTS.no_points, helper.ARGUMENTS.width,
                          helper.ARGUMENTS.height)
예제 #5
0
def main():
    """
    Main function to find the Nth term of Geometric progression given it's first 5 terms

    :return: Nothing
    :rtype: None
    """

    # Getting the path for logging config using arparse
    log_config_file = helper.ARGUMENTS.logfile

    # Configuring logging
    helper.configure_logging(log_config_file)

    # Extract the Input Vector from file
    input_vector = helper.get_vector_from_file(helper.ARGUMENTS.inputfile)

    # Finding the Nth Geometric Term
    solutions.get_n_geometric_term(input_vector, 6)
def main():
    """
    Main function to 
    
    :return: Nothing
    :rtype: None
    """

    # Getting the path for logging config using arparse
    log_config_file = helper.ARGUMENTS.logfile

    # Configuring logging
    helper.configure_logging(log_config_file)

    # Plotting the Curves
    solutions.digitize_plots(helper.ARGUMENTS.inputfile,
                             helper.ARGUMENTS.number, helper.ARGUMENTS.x_min,
                             helper.ARGUMENTS.x_max, helper.ARGUMENTS.y_min,
                             helper.ARGUMENTS.y_max)
def main():
    """
    Main function to Find the Eigen Values and Eigen Vectors of given matrix
    
    :return: Nothing
    :rtype: None
    """

    # Getting the path for logging config using arparse
    log_config_file = helper.ARGUMENTS.logfile

    # Configuring logging
    helper.configure_logging(log_config_file)

    # Extract the Input Vector from file
    input_matrix = helper.get_complex_matrix_from_file(
        helper.ARGUMENTS.inputfile)

    solutions.find_eigen_value_vector(input_matrix)
def main():
    """
    Main function to to get the input vectors and find dot product of them
    
    :return: Nothing
    :rtype: None
    """

    # Getting the path for logging config using arparse
    log_config_file = helper.ARGUMENTS.logfile

    # Configuring logging
    helper.configure_logging(log_config_file)

    # Extract the Input Vectors from file
    input_vectors = helper.get_matrix_from_file(helper.ARGUMENTS.inputfile)

    # Finding the Dot Product of All Given Vectors
    solutions.find_dot_product(input_vectors)
def main():
    """
    Main function to to get the input data points and  for Find the Knee of given curve
    
    :return: Nothing
    :rtype: None
    """

    # Getting the path for logging config using arparse
    log_config_file = helper.ARGUMENTS.logfile

    # Configuring logging
    helper.configure_logging(log_config_file)

    # Extract the Input Vectors from file
    input_vectors = helper.get_matrix_from_file(helper.ARGUMENTS.inputfile)

    # Finding the Knee and Plotting it
    solutions.plot_knee(input_vectors)
def main():
    """
    Main function to

    :return: Nothing
    :rtype: None
    """

    # Getting the path for logging config using arparse
    log_config_file = helper.ARGUMENTS.logfile

    # Configuring logging
    helper.configure_logging(log_config_file)

    # Extract the Input Vector from file
    input_vector = helper.get_vector_from_file(helper.ARGUMENTS.inputfile)

    # Finding the L1 Norm of given vector
    solutions.find_l1_norm(input_vector)

    # Finding the L2 Norm of given vector
    solutions.find_l2_norm(input_vector)