Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
ymartin101
QuickRAD
Repository navigation
Code
Issues
1
(1)
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
QuickRAD
/
K_Distribution_Fit.m
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
44 lines (38 loc) · 1.37 KB
master
Breadcrumbs
QuickRAD
/
K_Distribution_Fit.m
Copy path
Top
File metadata and controls
Code
Blame
44 lines (38 loc) · 1.37 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
%% File information
% Written by F. Gini and M. S. Greco
% Modified by M. Y. Martin (MRTMOG014)
% EEE4022S (2018)
% K_Distribution_Fit.m: Fit measured clutter data to a K distribution parameters, plot the PDF and return its parameters
%% Setup
load 'CFA17_002.mat'; % load dataset with variable 'Cdata' (clutter vector)
RangeBin = 1; % select range bin to fit K distribution to
%% PDF histogram
N = length(Cdata(:,RangeBin)); % number of samples
y = abs(Cdata(:,RangeBin)).^2; % square law
delta = 0.05;
yapl = 0:delta:max(y);
histo = hist(y,yapl)./(N*delta);
%% Moments
m(1) = mean(y);
mnorm = m(1);
m(2) = mean(y.^2);
i = 1:6;
%% K fitting
nu = fzero('K_nu',1,[],m(1),m(2)); % shape parameter of the clutter
mu = m(2)./2; % scale parameter of the clutter
yk = K_pdf(yapl,nu,mu); % returns K-PDF of the clutter
% K theoretical moments
mk = (2.*mu).^(i./2).*gamma(nu + i./2).*gamma(i./2 + 1)./(nu.^(i./2).*gamma(nu));
%% Plot PDF fitting
figure(1);
semilogy(yapl,histo,'*b',yapl,yk,'-.r','LineWidth',2);
axis([0 6 0.001 10]);
xlabel('Return Strength');
ylabel('Logarithmic Probability Density');
title('PDF Histogram and K-Distribution Fit');
legend('PDF Histogram','K-Distribution');
grid on;
%% Outputs
clc;
disp(['K distribution: nu = ' num2str(roundn(nu,-3)) ]);
disp(['K distribution: mu = ' num2str(roundn(mu,-3)) ]);
You can’t perform that action at this time.