Home
last modified time | relevance | path

Searched refs:knots (Results 1 – 25 of 44) sorted by relevance

12

/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/polynomials/
DPolynomialSplineFunction.java65 private final double knots[]; field in PolynomialSplineFunction
98 public PolynomialSplineFunction(double knots[], PolynomialFunction polynomials[]) { in PolynomialSplineFunction() argument
99 if (knots.length < 2) { in PolynomialSplineFunction()
102 2, knots.length); in PolynomialSplineFunction()
104 if (knots.length - 1 != polynomials.length) { in PolynomialSplineFunction()
107 polynomials.length, knots.length); in PolynomialSplineFunction()
109 if (!isStrictlyIncreasing(knots)) { in PolynomialSplineFunction()
114 this.n = knots.length -1; in PolynomialSplineFunction()
115 this.knots = new double[n + 1]; in PolynomialSplineFunction()
116 System.arraycopy(knots, 0, this.knots, 0, n + 1); in PolynomialSplineFunction()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/math/
DCurveAndSurfaceMath.java33 List<Float> knots = nurbSpline.getKnots(); in interpolateNurbs() local
39 …] * CurveAndSurfaceMath.computeBaseFunctionValue(i, nurbSpline.getBasisFunctionDegree(), u, knots); in interpolateNurbs()
65 …static void interpolate(float u, float v, List<List<Vector4f>> controlPoints, List<Float>[] knots, in interpolate() argument
75 * CurveAndSurfaceMath.computeBaseFunctionValue(i, basisVFunctionDegree, v, knots[1]) in interpolate()
76 * CurveAndSurfaceMath.computeBaseFunctionValue(j, basisUFunctionDegree, u, knots[0]); in interpolate()
94 public static void prepareNurbsKnots(List<Float> knots, int basisFunctionDegree) { in prepareNurbsKnots() argument
96 float prevValue = knots.get(0).floatValue(); in prepareNurbsKnots()
97 for(int i=1;i<knots.size();++i) { in prepareNurbsKnots()
98 float value = knots.get(i).floatValue(); in prepareNurbsKnots()
101 knots.set(i, Float.valueOf(value)); in prepareNurbsKnots()
[all …]
DSpline.java27 private List<Float> knots; //knots of NURBS spline field in Spline
112 this.knots = nurbKnots; in Spline()
119 CurveAndSurfaceMath.prepareNurbsKnots(knots, basisFunctionDegree); in Spline()
370 return knots.get(basisFunctionDegree - 1); in getMinNurbKnot()
379 return knots.get(weights.length); in getMaxNurbKnot()
387 return knots; in getKnots()
421 oc.writeSavableArrayList((ArrayList<Float>)knots, "knots", null); in write()
443 knots = in.readSavableArrayList("knots", null); in read()
/external/eigen/unsupported/Eigen/src/Splines/
DSplineFitting.h41 void KnotAveraging(const KnotVectorType& parameters, DenseIndex degree, KnotVectorType& knots) in KnotAveraging() argument
43 knots.resize(parameters.size()+degree+1); in KnotAveraging()
46 knots(j+degree) = parameters.segment(j,degree).mean(); in KnotAveraging()
48 knots.segment(0,degree+1) = KnotVectorType::Zero(degree+1); in KnotAveraging()
49 knots.segment(knots.size()-degree-1,degree+1) = KnotVectorType::Ones(degree+1); in KnotAveraging()
123 KnotVectorType knots; in Interpolate() local
124 KnotAveraging(knot_parameters, degree, knots); in Interpolate()
130 const DenseIndex span = SplineType::Span(knot_parameters[i], degree, knots); in Interpolate()
133 …(i).segment(span-degree, degree+1) = SplineType::BasisFunctions(knot_parameters[i], degree, knots); in Interpolate()
143 return SplineType(knots, ctrls); in Interpolate()
DSpline.h75 …Spline(const OtherVectorType& knots, const OtherArrayType& ctrls) : m_knots(knots), m_ctrls(ctrls)… in Spline() argument
83 m_knots(spline.knots()), m_ctrls(spline.ctrls()) {} in Spline()
88 const KnotVectorType& knots() const { return m_knots; } in knots() function
190 …<Spline>::Scalar u, DenseIndex degree, const typename SplineTraits<Spline>::KnotVectorType& knots);
204 static BasisVectorType BasisFunctions(Scalar u, DenseIndex degree, const KnotVectorType& knots);
216 const typename SplineTraits< Spline<_Scalar, _Dim, _Degree> >::KnotVectorType& knots) in Span()
219 if (u <= knots(0)) return degree; in Span()
220 …const Scalar* pos = std::upper_bound(knots.data()+degree-1, knots.data()+knots.size()-degree-1, u); in Span()
221 return static_cast<DenseIndex>( std::distance(knots.data(), pos) - 1 ); in Span()
229 const typename Spline<_Scalar, _Dim, _Degree>::KnotVectorType& knots) in BasisFunctions() argument
[all …]
/external/eigen/unsupported/test/
Dsplines.cpp38 RowVectorXd knots(12); in closed_spline2d() local
39 knots << 0, in closed_spline2d()
63 return Spline<double, 2, Dynamic>(knots, ctrls); in closed_spline2d()
69 RowVectorXd knots(11); in spline3d() local
70 knots << 0, in spline3d()
93 return Spline<double, 3, Dynamic>(knots, ctrls); in spline3d()
138 RowVectorXd u = spline.knots(); in eval_spline3d_onbrks()
/external/jmonkeyengine/engine/src/core/com/jme3/scene/shape/
DSurface.java25 private List<Float>[] knots; //knots of the surface field in Surface
47 this.knots = nurbKnots; in Surface()
96 …CurveAndSurfaceMath.interpolate(u, v, controlPoints, knots, basisUFunctionDegree, basisVFunctionDe… in buildSurface()
185 return knots[dim]; in getKnots()
201 return knots[0].get(basisUFunctionDegree - 1); in getMinUNurbKnot()
209 return knots[0].get(knots[0].size() - basisUFunctionDegree); in getMaxUNurbKnot()
217 return knots[1].get(basisVFunctionDegree - 1); in getMinVNurbKnot()
225 return knots[1].get(knots[1].size() - basisVFunctionDegree); in getMaxVNurbKnot()
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/
DShaderUtils.java172 public static final float[] spline(final float x, final float[][] knots) { in spline() argument
173 float[] retval = new float[knots.length]; in spline()
174 for (int i = 0; i < knots.length; i++) { in spline()
175 retval[i] = ShaderUtils.spline(x, knots[i]); in spline()
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/curves/
DCurvesHelper.java273 List<Float>[] knots = new List[2]; in loadNurb() local
275 for (int i = 0; i < knots.length; ++i) { in loadNurb()
281 knots[i] = new ArrayList<Float>(knotsAmount); in loadNurb()
283 knots[i].add(Float.valueOf(blenderInputStream.readFloat())); in loadNurb()
324 if (knots[1] == null) {//creating the curve in loadNurb()
325 Spline nurbSpline = new Spline(controlPoints.get(0), knots[0]); in loadNurb()
336 …Surface nurbSurface = Surface.createNurbsSurface(controlPoints, knots, resolu, resolv, orderU, ord… in loadNurb()
/external/opencv/ml/src/
Dml_inner_functions.cpp188 float* knots = (float*)cvAlloc( len * sizeof(float) ); in cvRandSeries() local
195 knots[0] = probs[0]; in cvRandSeries()
197 knots[i] = knots[i - 1] + probs[i]; in cvRandSeries()
202 if ( CV_MAT_ELEM(*univals, float, 0, i) <= knots[j] ) in cvRandSeries()
209 cvFree(&knots); in cvRandSeries()
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dorg.eclipse.core.resources_3.6.1.R36x_v20101007-1215.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
Dorg.eclipse.osgi_3.6.2.R36x_v20101103.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
Dorg.eclipse.osgi_3.6.1.R36x_v20100806.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
/external/libexif/po/
Den_AU.po2696 "'M' and 'N' represent kilometers per hour, miles per hour, and knots."
2699 "'M' and 'N' represent kilometers per hour, miles per hour, and knots."
2874 "'K', 'M' and 'N' represent kilometers, miles and knots."
Den_GB.po2696 "'M' and 'N' represent kilometers per hour, miles per hour, and knots."
2699 "'M' and 'N' represent kilometers per hour, miles per hour, and knots."
2874 "'K', 'M' and 'N' represent kilometers, miles and knots."
Den_CA.po2630 "'M' and 'N' represent kilometers per hour, miles per hour, and knots."
2633 "'M' and 'N' represent kilometres per hour, miles per hour, and knots."
Dlibexif-12.pot2623 "'M' and 'N' represent kilometers per hour, miles per hour, and knots."
Duk.po2626 "'M' and 'N' represent kilometers per hour, miles per hour, and knots."
Dsq.po2627 "'M' and 'N' represent kilometers per hour, miles per hour, and knots."
Dpt.po2627 "'M' and 'N' represent kilometers per hour, miles per hour, and knots."
Dbe.po2627 "'M' and 'N' represent kilometers per hour, miles per hour, and knots."
Dtr.po2627 "'M' and 'N' represent kilometers per hour, miles per hour, and knots."
/external/libexif/
DChangeLog87 * Changed "knots" to more clear "nautical miles" (Ubuntu Launchpad bug
/external/svox/pico_resources/tools/LingwareBuilding/PicoLingware_source_files/textana/en-US/
Den-US_tpp_net.utf2377 10406 "knots"
2380 10420 "knots"
/external/svox/pico_resources/tools/LingwareBuilding/PicoLingware_source_files/textana/en-GB/
Den-GB_tpp_net.utf2144 9202 "knots"
2147 9216 "knots"

12