Finding the central frequency for an array by using Weighted Average method

1 次查看(过去 30 天)
Hi, I have an array (1024x3000). it represented distribution, where 1024 is no. of raws and 3000 number of samples. for every sample, I have a curve. I want to find the central frequency for every sample so, the output should be (3000) values. I want first to find the maximum values and the corresponding for these values and find the FWHM for every sample and then apply the Weighted average method. can you please help me?
Example: this data is for one column only (one sample) (1024) value
I have to fine the maximum value for 3000 samples like this above by weighted average method or curve fitting
1097.123169
1091.124634
1072.713135
1042.405518
1000.742493
948.442383
886.438782
815.85907
737.971375
654.229004
566.263916
475.964081
385.605988
298.371063
219.73111
161.491959
144.877823
175.251053
228.667709
286.948608
342.52597
392.157867
434.25351
468.000275
493.034637
509.303986
516.994873
516.483398
508.313171
493.145844
471.729462
444.878784
413.418915
378.188538
339.98526
299.564758
257.629669
214.86377
171.986572
129.974854
90.811966
60.400253
54.746418
77.977234
112.073441
148.187775
183.434814
216.422363
246.17865
271.87561
292.763275
308.167023
317.512604
320.347778
316.37149
305.460114
287.693817
263.351227
232.933655
197.142517
156.88089
113.236984
67.49559
21.820072
27.733986
71.505882
112.749832
149.640839
180.941879
205.625946
222.859055
232.03009
232.760086
224.91684
208.613892
184.208389
152.288712
113.660492
69.325813
20.588915
32.083809
86.072891
140.575607
194.026413
244.904694
291.751526
333.155762
367.805389
394.530457
412.322205
420.377991
418.127045
405.278564
381.853027
348.218201
305.191437
254.134308
197.377945
139.663925
94.485458
94.838341
142.297256
204.512024
267.299896
325.005432
374.216431
412.361969
437.429291
447.929657
442.927979
422.131256
386.06192
336.27243
276.055206
212.589981
163.443787
162.507172
218.971939
303.817535
396.727814
487.921417
571.483276
643.08136
699.293579
737.440918
755.702087
753.014404
729.324768
685.610901
624.05719
548.409912
464.640381
382.653229
318.909454
296.063446
324.99585
390.239929
469.16095
546.496094
613.684875
666.405579
703.711792
728.187195
746.697266
770.537476
814.880737
894.474365
1018.501648
1188.2052
1398.212769
1640.124268
1904.646118
2182.393799
2464.167236
2741.516602
3005.88623
3249.802979
3466.037354
3648.320801
3791.131104
3890.265137
3942.211914
3945.079834
3898.19165
3801.73291
3657.621338
3468.806641
3239.358398
2974.40625
2680.253174
2363.681152
2032.244141
1694.35437
1359.063721
1037.372559
744.555908
510.170746
397.232117
448.769012
584.223511
727.011658
848.330627
938.115662
993.055298
1012.933655
999.506348
955.695862
885.472717
793.613708
685.380981
566.531311
443.512238
323.98056
219.886246
156.68129
165.523575
219.970612
279.680328
329.042969
362.889954
379.657776
379.447418
363.3815
333.30481
291.617981
241.112183
185.038452
127.604744
77.004318
59.659184
91.678291
137.418472
181.621002
220.546951
253.071625
279.012604
298.701721
312.792175
322.066315
327.342529
329.324219
328.557648
325.397675
320.064941
312.712097
303.568359
293.045898
281.821014
270.89801
261.528137
255.010513
252.377655
254.012253
259.462738
267.501099
276.436829
284.467712
289.943207
291.532257
288.28299
279.651825
265.498901
246.055832
221.899261
193.915833
163.283844
131.501923
100.574356
73.645462
56.413071
55.436802
67.697639
84.336494
100.430832
114.18882
125.184395
133.645981
140.157074
145.453629
150.255936
155.112213
160.294159
165.776077
171.303452
176.520996
181.104782
184.878891
187.881577
190.398453
192.922821
196.074478
200.466293
206.536819
214.451889
224.036591
234.863403
246.282806
257.69812
268.503662
278.282623
286.806396
294.040833
300.140503
305.396423
310.164978
314.785492
319.520081
324.468597
329.565887
334.564117
339.074219
342.640259
344.783112
345.070251
343.1604
338.80426
331.883362
322.381287
310.3591
295.9552
279.340851
260.691925
240.175125
217.970245
194.269745
169.307007
143.477722
117.492767
92.863289
72.888695
63.909023
71.120239
90.702599
115.921455
142.743561
169.062149
193.592667
215.48291
234.105637
249.0159
259.974182
266.912079
269.932587
269.295959
265.406952
258.775848
250.006851
239.703308
228.446854
216.72319
204.895828
193.136703
181.464432
169.743256
157.764511
145.309738
132.29805
118.767876
105.062813
91.974785
80.833755
73.539658
71.936668
76.562202
86.059105
98.281418
111.391251
124.001816
135.217987
144.418457
151.191864
155.305481
156.688416
155.356644
151.456818
145.206482
136.888107
126.843437
115.412109
103.000854
89.983101
76.752075
63.713146
51.291065
39.991898
30.525612
23.962187
21.434471
22.693933
25.874126
29.308926
32.103107
33.853008
34.42625
33.810131
32.102615
29.493755
26.277712
22.894148
19.978607
18.333406
18.56377
20.546335
23.55447
26.814432
29.781116
32.086037
33.508255
33.91938
33.2714
31.578833
28.923737
25.422884
21.248461
16.599138
11.716857
6.942752
3.341851
4.572638
8.096102
11.375413
13.99638
15.825859
16.816444
16.972166
16.341896
15.007535
13.084437
10.708264
8.037046
5.244009
2.600486
1.516189
3.332475
5.314531
6.932602
8.08532
8.73867
8.8985
8.597178
7.893964
6.867492
5.614998
4.254838
2.951932
2.013477
1.937624
2.575398
3.329906
3.942136
4.330745
4.480797
4.415563
4.183895
3.859685
3.53934
3.32354
3.283338
3.413476
3.639516
3.868437
4.020625
4.045546
3.917983
3.63541
3.214193
2.691115
2.134466
1.665106
1.479766
1.68886
2.132451
2.622226
3.056293
3.38722
3.595235
3.678539
3.649282
3.536058
3.377733
3.220934
3.113931
3.091392
3.160598
3.297907
3.464233
3.61685
3.722461
3.756156
3.706366
3.569768
3.351186
3.062039
2.719032
2.340782
1.94959
1.564958
1.211156
0.90897
0.684193
0.560401
0.536812
0.575835
0.639745
0.712816
0.79368
0.883865
0.98208
1.084244
1.181766
1.264697
1.32574
1.360163
1.363757
1.33761
1.285702
1.2158
1.139779
1.072392
1.030355
1.026044
1.064392
1.139313
1.239068
1.350407
1.462445
1.567954
1.661031
1.738789
1.799572
1.842259
1.867699
9.636182
6.975143
7.000512
7.024773
7.02281
6.969111
6.839465
6.613155
6.278866
5.831182
5.274324
4.619434
3.887216
3.105772
2.315869
1.585826
1.073193
1.058399
1.446105
1.90287
2.28597
2.541663
2.645446
2.586372
2.362504
1.978726
1.450461
0.809023
0.321751
0.962829
1.860666
2.800141
3.735486
4.631463
5.45357
6.171388
6.757514
7.188035
7.444578
7.515473
7.394834
7.086626
6.601631
5.962933
5.203853
4.378702
3.569584
2.915893
2.615817
2.789055
3.309593
3.9624
4.597131
5.12988
5.512706
5.719535
5.742134
5.585521
5.268102
4.820224
4.287071
3.725063
3.203986
2.800057
2.569367
2.506481
2.54012
2.572899
2.524578
2.344715
2.009323
1.514753
0.88101
0.244515
0.808265
1.687499
2.571573
3.399573
4.120132
4.686992
5.061776
5.214422
5.128081
4.798861
4.237563
3.471335
2.550685
1.581566
0.977311
1.521521
2.536616
3.546932
4.421743
5.092966
5.510434
5.64465
5.481619
5.021025
4.287908
3.327264
2.227428
1.271193
1.446358
2.588987
3.865711
5.051881
6.055199
6.81696
7.298838
7.490594
7.407867
7.096086
6.646908
6.190832
5.89411
5.904778
6.260067
6.863386
7.54786
8.145146
8.525301
8.584774
8.260756
7.518198
6.355248
4.805998
2.961215
1.283607
2.286014
4.627314
7.069265
9.399983
11.485417
13.215934
14.500746
15.270063
15.487382
15.128846
14.220691
12.816511
10.996526
8.884914
6.657174
4.614326
3.413484
3.837492
5.296695
6.972289
8.630567
10.31778
12.219417
14.573
17.566122
21.29286
25.734732
30.76013
36.197796
41.828392
47.418499
52.727909
57.526745
61.608547
64.804214
66.995216
68.132668
68.250847
67.501465
66.161087
64.632263
63.490372
63.360165
64.787941
68.139038
73.38414
80.17524
88.025993
96.370064
104.679649
112.482712
119.395546
125.086899
129.315384
131.897934
132.724442
131.744522
128.96991
124.464149
118.338463
110.738205
101.849609
91.884773
81.071541
69.663734
57.937286
46.239426
35.063873
25.373684
19.387304
20.131824
26.455744
34.917206
43.792778
52.421513
60.524059
67.97184
74.687561
80.651131
85.860161
90.330055
94.085274
97.170006
99.61657
101.46917
102.767303
103.536438
103.802437
103.574997
102.859253
101.65361
99.952515
97.75502
95.068146
91.913193
88.326279
84.373749
80.143974
75.758331
71.362007
67.132401
63.256474
59.921516
57.284035
55.43774
54.386719
54.035782
54.206505
54.671242
55.191086
55.544853
55.548477
55.063068
53.996708
52.305492
49.989594
47.091808
43.696728
39.926403
35.941868
31.93931
28.14447
24.799643
22.124243
20.243607
19.11204
18.493895
18.043613
17.414715
16.334669
14.617804
12.16557
8.952556
5.032519
1.153437
5.068818
10.620811
16.473219
22.420914
28.285204
33.899414
39.114166
43.805103
47.877411
51.270359
53.960388
55.95919
57.310722
58.085773
58.371666
58.261463
57.841335
57.179272
56.316883
55.26688
54.01627
52.532822
50.779575
48.726688
46.36203
43.699821
40.786602
37.694923
34.521198
31.369066
28.332699
25.47357
22.803183
20.272367
17.785896
15.239693
12.583939
9.951697
7.95266
7.94356
10.544232
14.731289
19.582022
24.57267
29.334263
33.550335
36.932552
39.230286
40.223408
39.760765
37.754761
34.22369
29.33952
23.572741
18.151051
16.031733
20.051878
28.367657
38.355881
48.6539
58.461403
67.18206
74.301689
79.388901
82.076385
82.072578
79.182411
73.30957
64.480637
52.891605
39.054211
24.600737
17.490555
29.484562
49.804066
72.402679
95.689735
118.821922
141.134369
162.043976
181.045685
197.683731
211.602005
222.506393
230.204819
234.600677
235.686142
233.551071
228.374329
220.390381
209.945999
197.424728
183.238586
167.873383
151.802322
135.534363
119.558243
104.369301
90.429123
78.152863
67.868843
59.752117
53.754845
49.541027
46.578205
44.259777
42.056946
39.602032
36.688419
33.266644
29.395138
25.242622
21.07691
17.295223
14.471087
13.236579
13.770958
15.508003
17.673519
19.725374
21.356016
22.408798
22.816071
22.573559
21.725315
20.353243
18.57777
16.556219
14.491888
12.641718
11.305893
10.739667
10.992657
11.851043
12.98952
14.12987
15.080594
15.724873
15.998687
15.875732
15.356837
14.463357
13.231269
11.707057
9.943987
7.998953
5.931363
3.805988
1.74031
1.041563
2.859289
4.818542
6.684084
8.409579
9.967925
11.338396
12.504001
13.450793
14.167645
14.646742
14.883713
14.87865
14.636557
14.167253
13.486152
12.613736
11.575183
10.39991
9.119612
7.768269
6.380181
4.988528
3.624548
2.31635
1.089358
0.131506
1.079724
1.979048
2.756623
3.410979
3.945147
4.364271
4.675338
4.885899
5.003594
5.035824
4.989857
4.87274
4.691653
4.454191
4.16858
3.843585
3.489088
3.115045
2.732206
2.35103
1.982514
1.63799
1.331029
1.079466
0.906961
0.835023
0.860769
0.950955
1.06695
1.180973
1.275662
1.340789
1.37076
1.364437
1.326268
1.267249
1.207267
1.174408
1.198289
1.295136
1.458089
1.66378
1.88452
2.096036
2.27854
2.417585
2.504436
2.535617
2.514751
2.452023
2.365306
2.279972
2.225377
2.228654
2.304287
2.44876
2.642915
2.861047
3.078883
3.276503
3.440669
3.564283
3.646067
3.688724
3.699985
3.688169
3.66288
3.631703
3.600542
3.571249
3.543084
3.514293
3.482749
Thank you so much

回答(0 个)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by