How to produce an average model from multiple other models.

조회 수: 1 (최근 30일)
Dharmesh Joshi
Dharmesh Joshi 2023년 1월 12일
답변: Sabin 2023년 1월 13일
Hi
I have 8 models for voltage corrections based on temperture.
I am using the following command to obtaining the correction factor
predict(model1, liveTemperature(idx))
These are my plots as an example
I would like to create an extra model, which is the average of all the models.
Is there a simple way of achiving this? or do i need to produce the mean of all the data points to create new model?
Thanks
  댓글 수: 1
Mathieu NOE
Mathieu NOE 2023년 1월 12일
hello
that is fairly simple , just do the y average of all your data

댓글을 달려면 로그인하십시오.

답변 (1개)

Sabin
Sabin 2023년 1월 13일
Sum the outputs of the eight models and divide at number of signals (8 in your case). For example if the 8 signals are y1,...,y8, the average would be y=(y1+y2+y3+...+y8)/8

카테고리

Help CenterFile Exchange에서 Pulse and Transition Metrics에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by