[103a0b0] | 1 | 1. Use Case 1: 1 data set and 1 model |
---|
| 2 | |
---|
| 3 | This use case describes an application (the client) performing a fit on a single |
---|
| 4 | data set with a single model. |
---|
| 5 | |
---|
| 6 | 1.1. Flow of Events |
---|
| 7 | 1.1.1. Basic Flow |
---|
| 8 | 1.1.1.1. The client chooses a data set to fit. |
---|
| 9 | 1.1.1.2. The client chooses a model to use. |
---|
| 10 | 1.1.1.3. The client enters the initial parameters of the model. |
---|
| 11 | 1.1.1.4. The client starts the fit. |
---|
| 12 | 1.1.1.5. The client reads back the fit results from the fitting object. |
---|
| 13 | |
---|
| 14 | |
---|
| 15 | 1.1.2. Alternative Flows |
---|
| 16 | |
---|
| 17 | Any of the following actions can take place: |
---|
| 18 | |
---|
| 19 | 1.1.2.1. The client does not enter initial parameters |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | 1.1.3. Error Conditions |
---|
| 23 | 1.1.3.1. The user does not choose a data set before starting the fit. |
---|
| 24 | 1.1.3.2. The user does not choose a model before starting the fit. |
---|
[ca6d914] | 25 | 1.1.3.3. the user does not specify the list of parameter to fit |
---|
| 26 | 1.1.3.4. the user enters a list of parameters that do not belong to the model |
---|
[103a0b0] | 27 | |
---|
| 28 | |
---|
| 29 | 1.2. Special requirements |
---|
| 30 | 1.2.1. Preconditions |
---|
| 31 | None |
---|
| 32 | |
---|
| 33 | 1.2.2. Post Conditions |
---|
| 34 | The client now has a fitting object that contains the results of his fit. |
---|
| 35 | He can modify that object and perform another fit. |
---|
| 36 | It will be possible for him to use the fit output as the initial parameters |
---|
| 37 | for any subsequent fit. |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | 2. Use Case 2: 2 data sets and 1 model |
---|
| 41 | |
---|
| 42 | This use case describes an application (the client) performing a fit on multiple |
---|
| 43 | data sets with a single model. |
---|
| 44 | |
---|
| 45 | 2.1. Flow of Events |
---|
| 46 | 2.1.1. Basic Flow |
---|
| 47 | 2.1.1.1. The client chooses two data sets to fit. |
---|
| 48 | 2.1.1.2. The client chooses a model to use. |
---|
| 49 | 2.1.1.3. The client enters the initial parameters of the model. |
---|
| 50 | 2.1.1.4. The client starts the fit. |
---|
| 51 | 2.1.1.5. The client reads back the fit results from the fitting object. |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | 2.1.2. Alternative Flows |
---|
| 55 | |
---|
| 56 | Any of the following actions can take place: |
---|
| 57 | |
---|
| 58 | 2.1.2.1. The client does not enter initial parameters |
---|
[ca6d914] | 59 | 2.1.2.2. the user enters a list of parameters not belonging to the model |
---|
[103a0b0] | 60 | |
---|
| 61 | |
---|
| 62 | 2.1.3. Error Conditions |
---|
| 63 | 2.1.3.1. The user does not choose a data set before starting the fit. |
---|
| 64 | 2.1.3.2. The user does not choose a model before starting the fit. |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | 2.2. Special requirements |
---|
| 68 | 2.2.1. Preconditions |
---|
| 69 | None |
---|
| 70 | |
---|
| 71 | 2.2.2. Post Conditions |
---|
| 72 | The client now has a fitting object that contains the results of his fit. |
---|
| 73 | He can modify that object and perform another fit. |
---|
| 74 | It will be possible for him to use the fit output as the initial parameters |
---|
| 75 | for any subsequent fit. |
---|
| 76 | |
---|
| 77 | |
---|
| 78 | 3. Use Case 3: 2 data sets, 2 models and one constraint |
---|
| 79 | |
---|
| 80 | This use case describes an application (the client) performing a fit on multiple |
---|
| 81 | data sets with a single model. |
---|
| 82 | |
---|
| 83 | 3.1. Flow of Events |
---|
| 84 | 3.1.1. Basic Flow |
---|
| 85 | 3.1.1.1. The client chooses two data sets to fit. |
---|
| 86 | 3.1.1.2. The client chooses one model to use with each data set. |
---|
| 87 | 3.1.1.3. The client enters the initial parameters of the models. |
---|
| 88 | 3.1.1.4 The client enters a string describing a condition between the two models. |
---|
| 89 | 3.1.1.5. The client starts the fit. |
---|
| 90 | 3.1.1.6. The client reads back the fit results from the fitting object. |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | 3.1.2. Alternative Flows |
---|
| 94 | |
---|
| 95 | Any of the following actions can take place: |
---|
| 96 | |
---|
| 97 | 3.1.2.1. The client does not enter initial parameters for one or both models |
---|
| 98 | |
---|
| 99 | |
---|
| 100 | 3.1.3. Error Conditions |
---|
| 101 | 3.1.3.1. The user does not choose a data set before starting the fit. |
---|
| 102 | 3.1.3.2. The user does not choose a model before starting the fit. |
---|
| 103 | 3.1.3.3. The user does not choose a model for one of the data sets. |
---|
| 104 | |
---|
| 105 | |
---|
| 106 | 3.2. Special requirements |
---|
| 107 | 3.2.1. Preconditions |
---|
| 108 | None |
---|
| 109 | |
---|
| 110 | 3.2.2. Post Conditions |
---|
| 111 | The client now has a fitting object that contains the results of his fit. |
---|
| 112 | He can modify that object and perform another fit. |
---|
| 113 | It will be possible for him to use the fit output as the initial parameters |
---|
| 114 | for any subsequent fit. |
---|
| 115 | |
---|
| 116 | Note: The test-case for this should use the testdata_generator module in the |
---|
| 117 | test directory and use two models: |
---|
| 118 | 1- A Line: Y = A*x + B for the file "testdata_line.txt" |
---|
| 119 | 2- A constant: Y = A for the file "testdata_cst.txt" |
---|
| 120 | The constraint should be that parameter "A" has the same value for both models. |
---|
| 121 | |
---|
| 122 | |
---|
| 123 | |
---|
| 124 | |
---|