Below is a natural log list of ordered time data with variable time-steps. I would like a functional approach that selects 3-tuples of positions sublists based on the first selected elements that exceed a specified Log10 distance (smth) applied to the left and right of each element. Output from the moving window would be a list of 3-element sublists of positions, { {i-left, i, i-right},...{}}.
smth = 0.1;
lneft = {-5.48, -4.79, -4.38, -4.1, -3.87, -3.69, -3.54, -3.41, -3.29, -3.09, -3., -2.85, -2.72, -2.6, -2.5, -2.36, -2.24, -2.13, -2.03, -1.94, -1.84, -1.74, -1.66, -1.58, -1.5, -1.42, -1.27, -1.14, -1.03, -0.93, -0.84, -0.76, -0.68, -0.61, -0.55, -0.49, -0.43, -0.38, -0.31, -0.24, -0.18, -0.12, -0.07, -0.02, 0.03, 0.07, 0.11, 0.15, 0.19, 0.23, 0.29, 0.35, 0.41, 0.46, 0.55, 0.6, 0.63, 0.71, 0.77, 0.83, 0.88, 0.92, 0.97, 1.01, 1.04, 1.08, 1.11, 1.14, 1.16, 1.19, 1.21, 1.24, 1.28, 1.32, 1.35, 1.38, 1.41, 1.43, 1.46, 1.48, 1.5, 1.52, 1.53, 1.55, 1.57, 1.58, 1.59, 1.61, 1.63, 1.65, 1.66, 1.67, 1.69, 1.7, 1.71, 1.72, 1.73, 1.74, 1.75, 1.76, 1.77, 1.78, 1.79, 1.8}
Output for the first sublist should be: {1,4,12}.
I found the initial left position with the following:
start = Position[lneft,SelectFirst[lneft,Log10[EuclideanDistance[First[lneft], #]] > smth &]]
{{4}}
"mnunos" (see below) provided a nice solution based on constant time-steps, which was my original question that I inadvertently made too simplistic. I just updated the question to include my actual data with variable time-steps.