Found 34487 Articles for Programming

Exploring Statistical Modelling with R

Swatantraveer Arya
Updated on 07-Aug-2023 16:06:29

962 Views

Introduction Statistical modeling is a powerful technique used in data analysis to uncover patterns, relationships, and trends within datasets. By applying statistical methods and models, researchers and analysts can gain insights, make predictions, and support decision-making processes. R, a popular programming language for statistical computing and graphics, offers a wide range of tools and libraries for statistical modeling. In this article, we will delve into the world of statistical modeling with R, exploring its key concepts, techniques, and applications. Understanding Statistical Modeling Statistical modeling is the process of formulating mathematical representations or models that describe the underlying structure of data. ... Read More

How to view the parameters in axes_style in Seaborn?

Niharika Aitam
Updated on 07-Aug-2023 17:19:13

92 Views

Seaborn's 'axes_style()' function allows us to customize the style of plots by modifying various parameters. It returns a dictionary of parameters that control the appearance of the plot elements, such as colors, fonts, gridlines, and more. To view these parameters, we can print the dictionary returned by 'axes_style()'. Importing Required Libraries Before we begin, let's import the necessary libraries. We need to import Seaborn by using the following command. import seaborn as sns Viewing Parameters To view the available parameters in 'axes_style()', we can simply print the dictionary returned by the function. Example When we run the below code, ... Read More

How to Convert RGB Image to Binary Image Using MATLAB?

Manish Kumar Saini
Updated on 07-Aug-2023 17:09:45

479 Views

In this article, we will explore how to convert an RGB image to a binary image using MATLAB programming. An RGB image is one which is represented by using three color channels namely, Red, Green, and Blue. In the case of an RGB image, the three primary colors, namely red, green, and blue are used to represent all the colors in the image. In the RGB image, each pixel of the image is represented by a combination of intensity values for these three colors. Therefore, the three intensity values of RGB colors determine the color of the pixel. In MATLAB, ... Read More

How to Convert HSI Image to RGB Image in MATLAB?

Manish Kumar Saini
Updated on 07-Aug-2023 17:08:29

270 Views

HSI (also called HSV) and RGB are two different types of color spaces. Where, HSI stands for Hue Saturation and Intensity, (HSV stands for Hue Saturation Value). An image represented based on the color model of HSI is called an HSI image. On the other hand, RGB stands for Red Green and Blue. It is another popular color space in which images are represented based on red, green, and blue color intensities. In this article, we will study how to convert an HSI image into an RGB image using MATLAB programming. MATLAB provides a built−in function ‘hsv2rgb’ to convert an ... Read More

Complexity Cheat Sheet for Python Operations

Niharika Aitam
Updated on 07-Aug-2023 17:06:43

517 Views

Time complexity is a measure of time, which determines the time required for the algorithm to execute. It also checks how the running time is being increased when the size of the inputs is getting increased. The time complexity is represented with the notation capital O, which sets an upper bound in the worst case performance of an algorithm. Whenever we design an algorithm we should keep in mind not only about the correctness but also about the time complexity and performance characteristics. For example, if an algorithm has time complexity O(n) that would take twice of O(n) to execute ... Read More

How to Color Slicing Using HSV Color Space in MATLAB?

Manish Kumar Saini
Updated on 07-Aug-2023 17:05:21

207 Views

In digital image processing, the process of extracting a specific color or color range from an image with all other colors are discarded is referred to as color slicing. In an image, the color slicing is performed by creating a binary mask that selects all the pixels in the image that lies in the range of the specified color. Coloring slicing is generally used in specific color spaces such as RGB (Red−Green−Blue) color space or HSV (Hue−Saturation−Value) color space, etc. In this article, we will learn how to perform color slicing in HSV color space using MATLAB programming. In the ... Read More

Comparing and Managing Names Using name-tools module in Python

Niharika Aitam
Updated on 07-Aug-2023 17:05:16

69 Views

The name-tools module is a python library which provides us the tools to work with the names. These are used in many applications likely data cleaning, text processing and Natural Language Processing etc. It has a several functions for comparing and managing the names. Installing name-tools Before working with the name-tools, we need to install it in the python environment. The following is the process for installing the name-tools. pip install name-tools After executing the above code, if you see the text below, then the installation is considered successful. Collecting name-toolsNote: you may need to restart the kernel ... Read More

How to Calculate Cumulative Product in MATLAB

Manish Kumar Saini
Updated on 07-Aug-2023 16:41:44

125 Views

In this article, we will learn how to calculate cumulative product in MATLAB. So, lets, start with the basic definition of cumulative product. What is Cumulative Product? A mathematical operation in which the product of a sequence of numbers is computed in a cumulative manner is called cumulative product. In the cumulative product, the product of elements of a sequence of numbers is computed up to the given index and the result obtained in each step is stored in the form of an array. To understand the what is the cumulative product? Let’s consider an example as follows. Let a ... Read More

How to Calculate Covariance in MATLAB

Manish Kumar Saini
Updated on 07-Aug-2023 16:36:01

150 Views

In this article, we will explore how to calculate covariance using MATLAB programming. But before that let’s have a look into the basic theory of covariance and importance. What is Covariance? Covariance is a statistical tool used to describe the correlation between two or more random variables. In other words, covariance is a measure that gives information about relationship between two or more variables. The covariable is primarily used to quantify the changes in one variable with respect to changes in another variables. The covariance between two random variables ‘A’ and ‘B’ is specified as cov(A, B), and ... Read More

How to Apply Median Filter for RGB Image in MATLAB?

Manish Kumar Saini
Updated on 07-Aug-2023 16:12:03

221 Views

In digital image processing, filtering is defined as a process of modifying an image to enhance its visibility. Image filtering in digital image processing involves the use of some mathematical operations applied to each pixel of the image. It alters the pixel value to achieve the desired corrections like noise reduction, edge detection, image enhancement, etc. The image filtering is performed by applying a filter to the image. Where, the filter is nothing but a matrix of numbers that determine how to modify the pixel values. There are several types of image filters available based on different requirements. Some common ... Read More

Advertisements