def scale_linear_input(inp_trans, min_range, max_range):
    """Scale a vector input between a min and max range"""
    inp_std = (inp_trans - min(inp_trans)) / (max(inp_trans) - min(inp_trans))
    inp_scaled = inp_std*(max_range - min_range) + min_range
    return inp_scaled