-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodel_dicts.py
8 lines (7 loc) · 4.67 KB
/
model_dicts.py
1
2
3
4
5
6
7
8
'''
There are four different models for interpolating (splines) and approximating (polynomial approximation) the given measured data on a linear or cubic way respectively. The dictionaries consist of distances in cm as keys and degrees in percent (maximum is 0.95) as values
'''
spline_cubic = {37: 0.5, 38: 1.0, 39: 1.5, 40: 2.0, 41: 2.5, 42: 3.0, 43: 3.5, 44: 4.0, 45: 4.5, 46: 5.0, 47: 6.5, 48: 8.0, 49: 9.5, 50: 11.5, 51: 15.0, 52: 17.5, 53: 20.0, 54: 21.0, 55: 22.5, 56: 23.5, 57: 25.0, 58: 25.5, 59: 26.0, 60: 27.0, 61: 27.5, 62: 28.0, 63: 28.5, 64: 29.5, 65: 30.0, 66: 31.0, 67: 31.5, 68: 32.5, 69: 33.5, 70: 34.0, 71: 35.0, 72: 36.0, 73: 37.0, 74: 38.0, 75: 39.0, 76: 40.0, 77: 40.5, 78: 40.5, 79: 41.0, 80: 41.0, 81: 41.5, 82: 41.5, 83: 42.0, 84: 42.0, 85: 42.5, 86: 42.5, 87: 43.0, 88: 43.0, 89: 43.5, 90: 43.5, 91: 44.0, 92: 44.0, 93: 44.5, 94: 55.0, 95: 50.0, 96: 60.0, 97: 61.0, 98: 62.0, 99: 62.5, 100: 63.5, 101: 64.5, 102: 65.5, 103: 66.0, 104: 66.5, 105: 67.0, 106: 67.5, 107: 68.0, 108: 69.0, 109: 69.5, 110: 70.0, 111: 70.5, 112: 71.0, 113: 71.5, 114: 72.0, 115: 72.5, 116: 73.0, 117: 73.5, 118: 74.0, 119: 74.5, 120: 75.5, 121: 76.5, 122: 78.0, 123: 79.0, 124: 80.0, 125: 81.0, 126: 81.5, 127: 82.5, 128: 83.5, 129: 84.0, 130: 85.0, 131: 85.5, 132: 86.5, 133: 87.0, 134: 88.0, 135: 88.5, 136: 89.5, 137: 90.0, 138: 90.5, 139: 91.0, 140: 91.5, 141: 92.0, 142: 93.0, 143: 93.5, 144: 94.0, 145: 94.5, 146: 95.0}
spline_lin = {38: 0.5, 39: 1.0, 40: 1.5, 41: 2.0, 42: 2.5, 43: 3.0, 44: 3.5, 45: 4.0, 46: 5.0, 47: 6.0, 48: 7.0, 49: 9.0, 50: 11.5, 51: 15.0, 52: 18.0, 53: 20.0, 54: 21.5, 55: 23.0, 56: 24.0, 57: 25.0, 58: 25.5, 59: 26.5, 60: 27.0, 61: 27.5, 62: 28.0, 63: 29.0, 64: 29.5, 65: 30.0, 66: 30.5, 67: 31.5, 68: 32.0, 69: 32.5, 70: 33.5, 71: 35.0, 72: 37.5, 73: 38.5, 74: 39.0, 75: 39.5, 76: 40.0, 77: 40.5, 78: 40.5, 79: 41.0, 80: 41.0, 81: 41.5, 82: 41.5, 83: 42.0, 84: 42.0, 85: 42.0, 86: 42.5, 87: 42.5, 88: 43.0, 89: 43.0, 90: 43.5, 91: 43.5, 92: 44.0, 93: 44.0, 94: 55.0, 95: 50.0, 96: 60.0, 97: 46.0, 98: 62.0, 99: 63.0, 100: 64.0, 101: 64.5, 102: 65.5, 103: 66.0, 104: 66.5, 105: 67.5, 106: 68.0, 107: 68.5, 108: 69.0, 109: 69.5, 110: 70.0, 111: 70.5, 112: 71.0, 113: 71.5, 114: 72.0, 115: 72.5, 116: 73.0, 117: 73.5, 118: 74.0, 119: 74.5, 120: 75.5, 121: 76.5, 122: 77.5, 123: 79.0, 124: 80.0, 125: 81.0, 126: 82.0, 127: 82.5, 128: 83.5, 129: 84.5, 130: 85.0, 131: 85.5, 132: 86.5, 133: 87.0, 134: 88.0, 135: 88.5, 136: 89.5, 137: 90.0, 138: 90.5, 139: 91.5, 140: 92.0, 141: 92.5, 142: 93.0, 143: 93.5, 144: 94.0, 145: 94.5, 146: 95.0}
pol_lin = {36: 1.5, 37: 2.0, 38: 3.0, 39: 4.0, 40: 5.0, 41: 6.0, 42: 6.5, 43: 7.5, 44: 8.5, 45: 9.5, 46: 10.5, 47: 11.0, 48: 12.0, 49: 13.0, 50: 14.0, 51: 14.5, 52: 15.5, 53: 16.5, 54: 17.5, 55: 18.5, 56: 19.0, 57: 20.0, 58: 21.0, 59: 22.0, 60: 23.0, 61: 23.5, 62: 24.5, 63: 25.5, 64: 26.5, 65: 27.0, 66: 28.0, 67: 29.0, 68: 30.0, 69: 31.0, 70: 31.5, 71: 32.5, 72: 33.5, 73: 34.5, 74: 35.5, 75: 36.0, 76: 37.0, 77: 38.0, 78: 39.0, 79: 40.0, 80: 40.5, 81: 41.5, 82: 42.5, 83: 43.5, 84: 44.0, 85: 45.0, 86: 46.0, 87: 47.0, 88: 48.0, 89: 48.5, 90: 49.5, 91: 50.5, 92: 51.5, 93: 52.5, 94: 53.0, 95: 54.0, 96: 55.0, 97: 56.0, 98: 57.0, 99: 57.5, 100: 58.5, 101: 59.5, 102: 60.5, 103: 61.0, 104: 62.0, 105: 63.0, 106: 64.0, 107: 65.0, 108: 65.5, 109: 66.5, 110: 67.5, 111: 68.5, 112: 69.5, 113: 70.0, 114: 71.0, 115: 72.0, 116: 73.0, 117: 73.5, 118: 74.5, 119: 75.5, 120: 76.5, 121: 77.5, 122: 78.0, 123: 79.0, 124: 80.0, 125: 81.0, 126: 82.0, 127: 82.5, 128: 83.5, 129: 84.5, 130: 85.5, 131: 86.5, 132: 87.0, 133: 88.0, 134: 89.0, 135: 90.0, 136: 90.5, 137: 91.5, 138: 92.5, 139: 93.5, 140: 94.5}
pol_cubic = {38: 0.5, 39: 1.5, 40: 2.5, 41: 4.0, 42: 5.0, 43: 6.0, 44: 7.0, 45: 8.0, 46: 9.0, 47: 10.0, 48: 11.0, 49: 12.0, 50: 13.0, 51: 14.0, 52: 15.0, 53: 16.0, 54: 17.0, 55: 18.0, 56: 19.0, 57: 20.0, 58: 21.0, 59: 22.0, 60: 23.0, 61: 24.0, 62: 25.0, 63: 26.0, 64: 27.0, 65: 28.0, 66: 29.0, 67: 30.0, 68: 31.0, 69: 32.0, 70: 33.0, 71: 34.0, 72: 34.5, 73: 35.5, 74: 36.5, 75: 37.5, 76: 38.5, 77: 39.5, 78: 40.5, 79: 41.5, 80: 42.0, 81: 43.0, 82: 44.0, 83: 45.0, 84: 46.0, 85: 47.0, 86: 47.5, 87: 48.5, 88: 49.5, 89: 50.5, 90: 51.0, 91: 52.0, 92: 53.0, 93: 54.0, 94: 55.0, 95: 55.5, 96: 56.5, 97: 57.5, 98: 58.0, 99: 59.0, 100: 60.0, 101: 61.0, 102: 61.5, 103: 62.5, 104: 63.5, 105: 64.0, 106: 65.0, 107: 66.0, 108: 66.5, 109: 67.5, 110: 68.5, 111: 69.0, 112: 70.0, 113: 71.0, 114: 71.5, 115: 72.5, 116: 73.5, 117: 74.0, 118: 75.0, 119: 75.5, 120: 76.5, 121: 77.5, 122: 78.0, 123: 79.0, 124: 79.5, 125: 80.5, 126: 81.5, 127: 82.0, 128: 83.0, 129: 83.5, 130: 84.5, 131: 85.0, 132: 86.0, 133: 86.5, 134: 87.5, 135: 88.0, 136: 89.0, 137: 89.5, 138: 90.5, 139: 91.0, 140: 92.0, 141: 92.5, 142: 93.5, 143: 94.0, 144: 95.0}