You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Dimitrios Efthymiou (Jira)" <ji...@apache.org> on 2023/07/15 11:34:00 UTC
[jira] [Comment Edited] (GEOMETRY-160) Implement getIndicesOfOccurenceOfElement(Vector x, double element)
[ https://issues.apache.org/jira/browse/GEOMETRY-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17743375#comment-17743375 ]
Dimitrios Efthymiou edited comment on GEOMETRY-160 at 7/15/23 11:33 AM:
------------------------------------------------------------------------
[~erans] no, I wouldn't crreate getIndicesOfOccurenceOfElementSmallerThanOrEqualToThreeTimesTheLastElement(List<Double> list). Use-cases are:
*Data Analysis:* It can be useful in data analysis where you may need to know where certain values occur in a dataset. For example, identifying the locations of missing values (NaN), outliers, or specific numerical or categorical values within a dataset.
*Signal Processing:* In signal processing, such a method could be used to identify the indices of peaks or certain threshold crossings in a waveform.
*Text Analysis:* In text processing, this could be applied to identify the positions of certain words or characters in a text represented as a vector of characters or words.
*Search Algorithms:* This function can be employed as a subroutine in many algorithms, for example, to determine the starting points of pattern matching or searching for certain criteria.
*Graphs and Networks:* In graph theory, where nodes or edges might have certain attributes, you can use this function to find the locations of these nodes/edges.
*Game Development:* In game logic, this method could be used to find positions of certain game elements in an array representing a game board or game state.
*Image Processing:* In image processing, it could be used to find indices of specific pixel values or colors.
*Sparse Matrix Representation:* In representing sparse matrices, where most of the elements are zero, this function can be used to identify the locations of non-zero elements.
*Genomic Data Processing:* In bioinformatics, this function can be used to find the occurrences of certain nucleotides or codons in large genomic sequences.
*Economic Data Analysis:* For financial and economic data analysis, it can be used to find the indices where certain economic indicators reach a specific value or threshold.
{*}Machine Learning{*}: During pre-processing of data, this function could be used to locate certain instances in your data before performing operations like deletion, imputation, or transformation.
was (Author: JIRAUSER301169):
[~erans] no, I wouldn't crreate getIndicesOfOccurenceOfElementSmallerThanOrEqualToThreeTimesTheLastElement(List<Double> list). Use-cases are:
# *Data Analysis:* It can be useful in data analysis where you may need to know where certain values occur in a dataset. For example, identifying the locations of missing values (NaN), outliers, or specific numerical or categorical values within a dataset.
# *Signal Processing:* In signal processing, such a method could be used to identify the indices of peaks or certain threshold crossings in a waveform.
# *Text Analysis:* In text processing, this could be applied to identify the positions of certain words or characters in a text represented as a vector of characters or words.
# *Search Algorithms:* This function can be employed as a subroutine in many algorithms, for example, to determine the starting points of pattern matching or searching for certain criteria.
# *Graphs and Networks:* In graph theory, where nodes or edges might have certain attributes, you can use this function to find the locations of these nodes/edges.
# *Game Development:* In game logic, this method could be used to find positions of certain game elements in an array representing a game board or game state.
# *Image Processing:* In image processing, it could be used to find indices of specific pixel values or colors.
# *Sparse Matrix Representation:* In representing sparse matrices, where most of the elements are zero, this function can be used to identify the locations of non-zero elements.
# *Genomic Data Processing:* In bioinformatics, this function can be used to find the occurrences of certain nucleotides or codons in large genomic sequences.
# *Economic Data Analysis:* For financial and economic data analysis, it can be used to find the indices where certain economic indicators reach a specific value or threshold.
# {*}Machine Learning{*}: During pre-processing of data, this function could be used to locate certain instances in your data before performing operations like deletion, imputation, or transformation.
> Implement getIndicesOfOccurenceOfElement(Vector x, double element)
> ------------------------------------------------------------------
>
> Key: GEOMETRY-160
> URL: https://issues.apache.org/jira/browse/GEOMETRY-160
> Project: Commons Geometry
> Issue Type: New Feature
> Components: euclidean1D, euclidean2D, euclidean3D
> Reporter: Dimitrios Efthymiou
> Priority: Minor
> Labels: features
> Original Estimate: 5h
> Remaining Estimate: 5h
>
> If we have a vector u = (2, 1, 3, 1, 7) and a number, say, 1 then it returns a list of the indices 1 and 3
--
This message was sent by Atlassian Jira
(v8.20.10#820010)