_images/wrench.png

mlcomm.util

Adaptive Communication Decision and Information Systems (ACDIS) - User License https://bloch.ece.gatech.edu/researchgroup/

Copyright (c) 2024-2025 Georgia Institute of Technology

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. Users shall cite ACDIS publications regarding this work.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER INANACTION OF CONTRACT TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

mlcomm.util.avec(angle, num_elements)

Description

Generates array response for a Uniform Linear Array (ULA) centered along the x-axis.

Parameters

anglefloat

Angle in radians of the AoA or AoD.

num_elements: int

Number of elements in the ULA.

Returns

array_response: numpy ndarray of complex float

Instantaneous, normalized narrowband response of ULA to impining signal, or transmitted singal at designated ‘angle’.

mlcomm.util.convert_seconds(seconds)

Converts a given number of seconds into hours, minutes, and seconds.

Parameters:

secondsint or float

The total number of seconds.

Returns:

str

A formatted string in the form of “HH:MM:SS”.

mlcomm.util.deg2rad(degs)
mlcomm.util.generate_rgb_gradient(n_points, mode='gt')
mlcomm.util.init_figs()
mlcomm.util.pad_and_mean(X, max_len)

row wise mean for vectors in a list or matrix X

mlcomm.util.pad_and_mean_last(X, max_len)

row wise mean for vectors in a list or matrix X

mlcomm.util.pad_vec(x, max_len)
mlcomm.util.pad_vec_last(x, max_len)
mlcomm.util.rad2deg(rads)
mlcomm.util.randcn(M)

Description

Generates a numpy array of complex floats representing standard circularly symmetric complex Gaussian Noise.

Parameters

Mint

Length of noise vector required.

Returns

noisenumpy ndarray of complex floats

Vector representing the noise values.