Comments (6)
@netlcod
Thank you for reporting this issue. The adapt
function is required here for multidimensional arrays (tensors), so it isn't an option to remove it. But the adapt function assumes a valid index passed to it which isn't a case for the stop
index (past-the-end index). This also affected all expressions that relied on start and stop arguments in their begin_pass and end_pass functions.
I've pushed a fix, could you try to pull dev
branch and rerun your tests?
from kfr.
In the line bqfilter->apply(batch); filtering gives wrong result.
But if you replace it with bqfilter->apply(batch.data(), samples+1), the result becomes adequate.
Result with samples+1:
What i do wring? Or it is library bug?
from kfr.
It seems to me that the library is the problem. When get_element gets a invalid index, it returns 0. So for the last sample it returns 0 instead of a valid value.
from kfr.
In the file kfr/base/expression.cpp at line 726
begin_pass(in, inshape.adapt(start), inshape.adapt(stop));
the array size is reduced. If you replace it to the line
begin_pass(in, start, stop);
the filters work normally.
So I have a question, I need to replace
begin_pass(in, inshape.adapt(start), inshape.adapt(stop));
to the line
begin_pass(in, start, stop);
or i need replace in file shape.hpp in line 283
return other.template trim<dims>()->min(**this - 1);
to the
return other.template trim<dims>()->min(**this);
from kfr.
from kfr.
@dancazarin yes, it works, thanks!
from kfr.
Related Issues (20)
- zpk2tf, tf2zpk representation HOT 4
- Asymmetric Hann window HOT 3
- Polyphase filter bank HOT 2
- Internal compiler error HOT 3
- Minimum dft size HOT 1
- KFR Roadmap HOT 7
- Slow DFT (much slower than FFTW or IPP) HOT 2
- Building with clang-10 leads to warnings HOT 2
- Build failed on arm64 with -DKFR_ENABLE_CAPI_BUILD=ON in capi/CMakeFiles/kfr_capi.dir/capi.cpp.o HOT 9
- Cannot link kfr_dft
- Example request: FIR Overlap-Add
- Unable to properly link kfr_dft HOT 9
- Combine FIR filters in parallel HOT 2
- undefined reference to `void kfr::sse2::dft_initialize HOT 10
- using std::complex HOT 1
- [Planner Flags] FFTW_* option equivalent HOT 1
- Orphan #define statement in KFR6 HOT 1
- Build failed CAPI on Docker ubuntu22 with Clang HOT 1
- [SUGGESTION] Fingerprinting, resampling algos & more
- Need exmaples about fft2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kfr.